Class: Spinbox (Ruby 2.3.4)

In Files

  • tk/lib/tk/spinbox.rb

Class/Module Index [+]

Quicksearch

Spinbox

Public Instance Methods

__validation_class_list()
 
               # File tk/lib/tk/spinbox.rb, line 71
def __validation_class_list
  super() << SpinCommand
end
            
identify(x, y)
 
               # File tk/lib/tk/spinbox.rb, line 100
def identify(x, y)
  tk_send_without_enc('identify', x, y)
end
            
invoke(elem)
 
               # File tk/lib/tk/spinbox.rb, line 104
def invoke(elem)
  tk_send_without_enc('invoke', elem)
  self
end
            
set(str)
 
               # File tk/lib/tk/spinbox.rb, line 137
def set(str)
  _fromUTF8(tk_send_without_enc('set', _get_eval_enc_str(str)))
end
            
spindown()
 
               # File tk/lib/tk/spinbox.rb, line 123
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()
 
               # File tk/lib/tk/spinbox.rb, line 109
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