# File tk/lib/tkextlib/iwidgets/spinner.rb, line 67
def __validation_class_list
super() << EntryfieldValidate
end
# File tk/lib/tkextlib/iwidgets/spinner.rb, line 85
def clear
tk_call_without_enc(@path, 'clear')
self
end
# File tk/lib/tkextlib/iwidgets/spinner.rb, line 106
def cursor=(index)
tk_send_without_enc('icursor', index)
#self
index
end
# File tk/lib/tkextlib/iwidgets/spinner.rb, line 90
def delete(first, last=None)
tk_send_without_enc('delete', first, last)
self
end
# File tk/lib/tkextlib/iwidgets/spinner.rb, line 80
def down
tk_call_without_enc(@path, 'down')
self
end
# File tk/lib/tkextlib/iwidgets/spinner.rb, line 126
def dragto(pos)
tk_send_without_enc('scan', 'dragto', pos)
self
end
# File tk/lib/tkextlib/iwidgets/spinner.rb, line 113
def index(idx)
number(tk_send_without_enc('index', idx))
end
# File tk/lib/tkextlib/iwidgets/spinner.rb, line 117
def insert(pos,text)
tk_send_without_enc('insert', pos, _get_eval_enc_str(text))
self
end
# File tk/lib/tkextlib/iwidgets/spinner.rb, line 122
def mark(pos)
tk_send_without_enc('scan', 'mark', pos)
self
end
# File tk/lib/tkextlib/iwidgets/spinner.rb, line 130
def selection_adjust(index)
tk_send_without_enc('selection', 'adjust', index)
self
end
# File tk/lib/tkextlib/iwidgets/spinner.rb, line 134
def selection_clear
tk_send_without_enc('selection', 'clear')
self
end
# File tk/lib/tkextlib/iwidgets/spinner.rb, line 138
def selection_from(index)
tk_send_without_enc('selection', 'from', index)
self
end
# File tk/lib/tkextlib/iwidgets/spinner.rb, line 142
def selection_present()
bool(tk_send_without_enc('selection', 'present'))
end
# File tk/lib/tkextlib/iwidgets/spinner.rb, line 145
def selection_range(s, e)
tk_send_without_enc('selection', 'range', s, e)
self
end
# File tk/lib/tkextlib/iwidgets/spinner.rb, line 149
def selection_to(index)
tk_send_without_enc('selection', 'to', index)
self
end
# File tk/lib/tkextlib/iwidgets/spinner.rb, line 75
def up
tk_call_without_enc(@path, 'up')
self
end
# File tk/lib/tkextlib/iwidgets/spinner.rb, line 95
def value
_fromUTF8(tk_send_without_enc('get'))
end
# File tk/lib/tkextlib/iwidgets/spinner.rb, line 98
def value= (val)
tk_send_without_enc('delete', 0, 'end')
tk_send_without_enc('insert', 0, _get_eval_enc_str(val))
val
end
based on tk/scrollable.rb
# File tk/lib/tkextlib/iwidgets/spinner.rb, line 155
def xview(*index)
if index.size == 0
list(tk_send_without_enc('xview'))
else
tk_send_without_enc('xview', *index)
self
end
end