Class: TkTy

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

Direct Known Subclasses

TkEnumType, TkReadOnly, TkStringType

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#agobjObject (readonly)

Returns the value of attribute agobj.



12
13
14
# File 'ext/ae-rad/ae-rad-inspector.rb', line 12

def agobj
  @agobj
end

#labelhostObject

Returns the value of attribute labelhost.



12
13
14
# File 'ext/ae-rad/ae-rad-inspector.rb', line 12

def labelhost
  @labelhost
end

#propObject (readonly)

Returns the value of attribute prop.



12
13
14
# File 'ext/ae-rad/ae-rad-inspector.rb', line 12

def prop
  @prop
end

Instance Method Details

#free(_updatehost = false, _text = nil) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
# File 'ext/ae-rad/ae-rad-inspector.rb', line 14

def free(_updatehost = false, _text = nil)
  if (defined? @propobj)&&(@propobj != nil)
    @propobj.destroy
    @propobj=nil
  end
  if _text
    @etextvalue = _text
  end
  if _updatehost and TkWinfo.exist?(@labelhost)
    @labelhost.configure('text' => @etextvalue) if defined? @labelhost
  end
end