Class: AGTkSimpleManager
- Inherits:
-
Object
- Object
- AGTkSimpleManager
- Defined in:
- ext/ae-rad/lib/tk/al-tk.rb
Instance Method Summary collapse
- #add_bind ⇒ Object
-
#initialize(_agobj, _active) ⇒ AGTkSimpleManager
constructor
A new instance of AGTkSimpleManager.
-
#object_inspector_select ⇒ Object
def bypass_bind @byb = true end.
Constructor Details
#initialize(_agobj, _active) ⇒ AGTkSimpleManager
Returns a new instance of AGTkSimpleManager.
83 84 85 86 87 88 |
# File 'ext/ae-rad/lib/tk/al-tk.rb', line 83 def initialize(_agobj, _active) @agobj = _agobj @active = _active add_bind # @byb = true end |
Instance Method Details
#add_bind ⇒ Object
90 91 92 |
# File 'ext/ae-rad/lib/tk/al-tk.rb', line 90 def add_bind @agobj.obj.bind_append("ButtonPress-1", proc{object_inspector_select}) end |
#object_inspector_select ⇒ Object
def bypass_bind
@byb = true
end
98 99 100 101 102 |
# File 'ext/ae-rad/lib/tk/al-tk.rb', line 98 def object_inspector_select @agobj.select #@agobj.object_inspector.select(@agobj, false) if !defined? @agobj.object_inspector.active_object or @agobj.object_inspector.active_object != @agobj AGTkLManager.deactivate_all end |