Class: TkReadOnly
Instance Attribute Summary
Attributes inherited from TkTy
Instance Method Summary collapse
- #free(_updatehost = false, _text = nil) ⇒ Object
-
#initialize(_label) ⇒ TkReadOnly
constructor
A new instance of TkReadOnly.
Constructor Details
#initialize(_label) ⇒ TkReadOnly
Returns a new instance of TkReadOnly.
29 30 31 32 33 |
# File 'ext/ae-rad/ae-rad-inspector.rb', line 29 def initialize(_label) @label = _label @color = @label.cget('foreground') @label.configure('foreground'=>'#919191') end |
Instance Method Details
#free(_updatehost = false, _text = nil) ⇒ Object
35 36 37 38 |
# File 'ext/ae-rad/ae-rad-inspector.rb', line 35 def free(_updatehost = false, _text = nil) @label.configure('foreground'=>@color) super end |