Class: AGTkObjPackRect

Inherits:
Object
  • Object
show all
Defined in:
ext/ae-rad/lib/tk/al-tk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#rObject (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