Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more

In Files

  • tk/lib/tk/scale.rb

Class/Module Index [+]

Quicksearch

Tk::Scale

Public Instance Methods

command(cmd=Proc.new) click to toggle source
 
               # File tk/lib/tk/scale.rb, line 80
def command(cmd=Proc.new)
  configure('command'=>cmd)
end
            
configure(slot, value=None) click to toggle source
 
               # 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
            
configure_cmd(slot, value) click to toggle source
 
               # File tk/lib/tk/scale.rb, line 65
def configure_cmd(slot, value)
  configure(slot=>value)
end
            
coords(val=None) click to toggle source
 
               # File tk/lib/tk/scale.rb, line 88
def coords(val=None)
  tk_split_list(tk_send_without_enc('coords', val))
end
            
get(x=None, y=None) click to toggle source
 
               # File tk/lib/tk/scale.rb, line 84
def get(x=None, y=None)
  number(tk_send_without_enc('get', x, y))
end
            
identify(x, y) click to toggle source
 
               # File tk/lib/tk/scale.rb, line 92
def identify(x, y)
  tk_send_without_enc('identify', x, y)
end
            
set(val) click to toggle source
 
               # File tk/lib/tk/scale.rb, line 96
def set(val)
  tk_send_without_enc('set', val)
end
            
value() click to toggle source
 
               # File tk/lib/tk/scale.rb, line 100
def value
  get
end
            
value=(val) click to toggle source
 
               # File tk/lib/tk/scale.rb, line 104
def value= (val)
  set(val)
  val
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.