class Tk::Scale
Constants
- TkCommandNames
- WidgetClassName
Public Instance Methods
Source
# File lib/tk/scale.rb, line 81 def command(cmd=nil, &block) configure('command'=>cmd || block) end
Source
# File lib/tk/scale.rb, line 70 def configure(slot, value=None) if (slot == 'command' || slot == :command) configure('command'=>value) elsif slot.kind_of?(Hash) && (slot.key?('command') || slot.key?(:command)) slot = _symbolkey2str(slot) slot['command'] = _wrap_command_arg(slot.delete('command')) end super(slot, value) end
Calls superclass method
TkConfigMethod#configure
Source
# File lib/tk/scale.rb, line 66 def configure_cmd(slot, value) configure(slot=>value) end
Source
# File lib/tk/scale.rb, line 89 def coords(val=None) tk_split_list(tk_send_without_enc('coords', val)) end
Source
# File lib/tk/scale.rb, line 85 def get(x=None, y=None) number(tk_send_without_enc('get', x, y)) end
Source
# File lib/tk/scale.rb, line 93 def identify(x, y) tk_send_without_enc('identify', x, y) end