Class: TkReadOnly

Inherits:
TkTy
  • Object
show all
Defined in:
ext/ae-rad/ae-rad-inspector.rb

Instance Attribute Summary

Attributes inherited from TkTy

#agobj, #labelhost, #prop

Instance Method Summary collapse

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