Class Tk::BWidget::SpinBox
In: tk/lib/tkextlib/bwidget/spinbox.rb
Parent: TkEntry

Methods

Included Modules

Scrollable

Constants

TkCommandNames = ['SpinBox'.freeze].freeze
WidgetClassName = 'SpinBox'.freeze

Public Instance methods

[Source]

# File tk/lib/tkextlib/bwidget/spinbox.rb, line 25
  def entrybind(*args)
    _bind([path, 'bind'], *args)
    self
  end

[Source]

# File tk/lib/tkextlib/bwidget/spinbox.rb, line 30
  def entrybind_append(*args)
    _bind_append([path, 'bind'], *args)
    self
  end

[Source]

# File tk/lib/tkextlib/bwidget/spinbox.rb, line 35
  def entrybind_remove(*args)
    _bind_remove([path, 'bind'], *args)
    self
  end

[Source]

# File tk/lib/tkextlib/bwidget/spinbox.rb, line 40
  def entrybindinfo(*args)
    _bindinfo([path, 'bind'], *args)
    self
  end

[Source]

# File tk/lib/tkextlib/bwidget/spinbox.rb, line 45
  def get_index_of_value
    number(tk_send_without_enc('getvalue'))
  end
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

[Source]

# File tk/lib/tkextlib/bwidget/spinbox.rb, line 51
  def set_value_by_index(idx)
    idx = "@#{idx}" if idx.kind_of?(Integer)
    tk_send_without_enc('setvalue', idx)
    self
  end

[Validate]