Class: AGTkObjPackRect
- Inherits:
-
Object
- Object
- AGTkObjPackRect
- Defined in:
- ext/ae-rad/lib/tk/al-tk.rb
Instance Attribute Summary collapse
-
#r ⇒ Object
readonly
Returns the value of attribute r.
Instance Method Summary collapse
-
#initialize(_parent, _w0, _h0, _anchor) ⇒ AGTkObjPackRect
constructor
A new instance of AGTkObjPackRect.
Constructor Details
#initialize(_parent, _w0, _h0, _anchor) ⇒ AGTkObjPackRect
Returns a new instance of AGTkObjPackRect.
547 548 549 550 551 552 553 554 555 556 |
# File 'ext/ae-rad/lib/tk/al-tk.rb', line 547 def initialize(_parent,_w0 , _h0, _anchor) @r = TkLabel.new(_parent){ text 'p' font 'courier 8' highlightbackground 'black' background 'yellow' relief 'groove' pack('ipadx'=>0,'ipady'=>0, 'anchor' => _anchor) } end |
Instance Attribute Details
#r ⇒ Object (readonly)
Returns the value of attribute r.
545 546 547 |
# File 'ext/ae-rad/lib/tk/al-tk.rb', line 545 def r @r end |