Class: AGTkBwButton

Inherits:
AGTkButton show all
Defined in:
lib/tkext/al-bwidget.rb

Instance Attribute Summary

Attributes inherited from AGTk

#canvas, #l_manager, #x0, #x3, #y0, #y3

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AGTkLayoutManaged

#start_properties

Methods inherited from AGTk

#activate, #active_move_tab, class_renderer, class_sniffer, #contains_events, #delete, #getFileName, #has_events, #initialize, #new_object, #popup, #popup_items, #update_property

Constructor Details

This class inherits a constructor from AGTk

Class Method Details

.class_wrappedObject



124
125
126
# File 'lib/tkext/al-bwidget.rb', line 124

def AGTkBwButton.class_wrapped
 Tk::BWidget::Button
end

Instance Method Details

#propertiesObject



127
128
129
130
131
132
133
134
135
136
137
138
139
140
# File 'lib/tkext/al-bwidget.rb', line 127

def properties
  super()
  publish('property','name'=>'helptype',
  'get'=> proc{@obj.cget('helptype')},
  'set'=> proc{|v| @obj.configure('helptype'=>v)},
  'def'=> "",
  'type'=> EnumType.new('balloon','variable')
  )
  publish('property','name'=>'helptext',
  'get'=> proc{@obj.cget('helptext')},
  'set'=> proc{|v| @obj.configure('helptext'=>v)},
  'def'=> ""
  )
end