Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more
# File tk/lib/tk/scale.rb, line 80 def command(cmd=Proc.new) configure('command'=>cmd) end
# File tk/lib/tk/scale.rb, line 69 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
# File tk/lib/tk/scale.rb, line 65 def configure_cmd(slot, value) configure(slot=>value) end
# File tk/lib/tk/scale.rb, line 88 def coords(val=None) tk_split_list(tk_send_without_enc('coords', val)) end
# File tk/lib/tk/scale.rb, line 84 def get(x=None, y=None) number(tk_send_without_enc('get', x, y)) end
# File tk/lib/tk/scale.rb, line 92 def identify(x, y) tk_send_without_enc('identify', x, y) end