Class: AGTkSimpleManager

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

Instance Method Summary collapse

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_bindObject



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_selectObject

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