Class: Tk::BWidget::SpinBox (Ruby 2.3.4)

In Files

  • tk/lib/tkextlib/bwidget/spinbox.rb

Class/Module Index [+]

Quicksearch

Tk::BWidget::SpinBox

Public Instance Methods

entrybind(context, *args)

def entrybind(*args)

_bind([path, 'bind'], *args)
self

end

 
               # File tk/lib/tkextlib/bwidget/spinbox.rb, line 50
def entrybind(context, *args)
  #if args[0].kind_of?(Proc) || args[0].kind_of?(Method)
  if TkComm._callback_entry?(args[0]) || !block_given?
    cmd = args.shift
  else
    cmd = Proc.new
  end
  _bind([path, 'bind'], context, cmd, *args)
  self
end
            
entrybind_append(context, *args)

def #entrybind_append(*args)

_bind_append([path, 'bind'], *args)
self

end

 
               # File tk/lib/tkextlib/bwidget/spinbox.rb, line 65
def entrybind_append(context, *args)
  #if args[0].kind_of?(Proc) || args[0].kind_of?(Method)
  if TkComm._callback_entry?(args[0]) || !block_given?
    cmd = args.shift
  else
    cmd = Proc.new
  end
  _bind_append([path, 'bind'], context, cmd, *args)
  self
end
            
entrybind_remove(*args)
 
               # File tk/lib/tkextlib/bwidget/spinbox.rb, line 76
def entrybind_remove(*args)
  _bind_remove([path, 'bind'], *args)
  self
end
            
entrybindinfo(*args)
 
               # File tk/lib/tkextlib/bwidget/spinbox.rb, line 81
def entrybindinfo(*args)
  _bindinfo([path, 'bind'], *args)
  self
end
            
get_index_of_value()
 
               # File tk/lib/tkextlib/bwidget/spinbox.rb, line 86
def get_index_of_value
  number(tk_send_without_enc('getvalue'))
end
            
Also aliased as: get_value, get_value_index
get_value()
Alias for: get_index_of_value
get_value_index()
Alias for: get_index_of_value
set_index_value(idx)
Alias for: set_value_by_index
set_value(idx)
Alias for: set_value_by_index
set_value_by_index(idx)
 
               # File tk/lib/tkextlib/bwidget/spinbox.rb, line 92
def set_value_by_index(idx)
  idx = "@#{idx}" if idx.kind_of?(Integer)
  tk_send_without_enc('setvalue', idx)
  self
end
            
Also aliased as: set_value, set_index_value