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

In Files

  • tk/lib/tk/spinbox.rb

Class/Module Index [+]

Quicksearch

Spinbox

Public Instance Methods

__validation_class_list() click to toggle source
 
               # File tk/lib/tk/spinbox.rb, line 70
def __validation_class_list
  super() << SpinCommand
end
            
identify(x, y) click to toggle source
 
               # File tk/lib/tk/spinbox.rb, line 99
def identify(x, y)
  tk_send_without_enc('identify', x, y)
end
            
invoke(elem) click to toggle source
 
               # File tk/lib/tk/spinbox.rb, line 103
def invoke(elem)
  tk_send_without_enc('invoke', elem)
  self
end
            
set(str) click to toggle source
 
               # File tk/lib/tk/spinbox.rb, line 136
def set(str)
  _fromUTF8(tk_send_without_enc('set', _get_eval_enc_str(str)))
end
            
spindown() click to toggle source
 
               # File tk/lib/tk/spinbox.rb, line 122
def spindown
  begin
    tk_send_without_enc('invoke', 'buttondown')
  rescue RuntimeError => e
    # old version of element?
    begin
      tk_send_without_enc('invoke', 'spinup')
    rescue
      fail e
    end
  end
  self
end
            
spinup() click to toggle source
 
               # File tk/lib/tk/spinbox.rb, line 108
def spinup
  begin
    tk_send_without_enc('invoke', 'buttonup')
  rescue RuntimeError => e
    # old version of element?
    begin
      tk_send_without_enc('invoke', 'spinup')
    rescue
      fail e
    end
  end
  self
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.