class Tk::BWidget::SpinBox

Constants

TkCommandNames
WidgetClassName

Public Instance Methods

entrybind(context, *args, &block) click to toggle source
# File lib/tkextlib/bwidget/spinbox.rb, line 46
def entrybind(context, *args, &block)
  #if args[0].kind_of?(Proc) || args[0].kind_of?(Method)
  if TkComm._callback_entry?(args[0]) || !block
    cmd = args.shift
  else
    cmd = block
  end
  _bind([path, 'bind'], context, cmd, *args)
  self
end
entrybind_append(context, *args, &block) click to toggle source
# File lib/tkextlib/bwidget/spinbox.rb, line 57
def entrybind_append(context, *args, &block)
  #if args[0].kind_of?(Proc) || args[0].kind_of?(Method)
  if TkComm._callback_entry?(args[0]) || !block
    cmd = args.shift
  else
    cmd = block
  end
  _bind_append([path, 'bind'], context, cmd, *args)
  self
end
entrybind_remove(*args) click to toggle source
# File lib/tkextlib/bwidget/spinbox.rb, line 68
def entrybind_remove(*args)
  _bind_remove([path, 'bind'], *args)
  self
end
entrybindinfo(*args) click to toggle source
# File lib/tkextlib/bwidget/spinbox.rb, line 73
def entrybindinfo(*args)
  _bindinfo([path, 'bind'], *args)
  self
end
get_index_of_value() click to toggle source
# File lib/tkextlib/bwidget/spinbox.rb, line 78
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) click to toggle source
# File lib/tkextlib/bwidget/spinbox.rb, line 84
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

Private Instance Methods

__boolval_optkeys() click to toggle source
Calls superclass method TkConfigMethod#__boolval_optkeys
# File lib/tkextlib/bwidget/spinbox.rb, line 31
def __boolval_optkeys
  super() << 'dragenabled' << 'dropenabled' << 'editable'
end
__listval_optkeys() click to toggle source
Calls superclass method TkConfigMethod#__listval_optkeys
# File lib/tkextlib/bwidget/spinbox.rb, line 36
def __listval_optkeys
  super() << 'values'
end
__strval_optkeys() click to toggle source
Calls superclass method Tk::Entry#__strval_optkeys
# File lib/tkextlib/bwidget/spinbox.rb, line 26
def __strval_optkeys
  super() << 'helptext' << 'insertbackground' << 'entryfg' << 'entrybg'
end
__tkvariable_optkeys() click to toggle source
Calls superclass method TkConfigMethod#__tkvariable_optkeys
# File lib/tkextlib/bwidget/spinbox.rb, line 41
def __tkvariable_optkeys
  super() << 'helpvar'
end