In: |
tk/lib/tk/entry.rb
|
Parent: | TkLabel |
TkCommandNames | = | ['entry'.freeze].freeze |
WidgetClassName | = | 'Entry'.freeze |
# File tk/lib/tk/entry.rb, line 107 def []=(*args) val = args.pop str = self.value str[*args] = val self.value = str val end
# File tk/lib/tk/entry.rb, line 34 def cursor=(index) tk_send_without_enc('icursor', index) #self index end
# File tk/lib/tk/entry.rb, line 46 def delete(first, last=None) tk_send_without_enc('delete', first, last) self end
# File tk/lib/tk/entry.rb, line 54 def dragto(pos) tk_send_without_enc('scan', 'dragto', pos) self end
# File tk/lib/tk/entry.rb, line 42 def insert(pos,text) tk_send_without_enc('insert', pos, _get_eval_enc_str(text)) self end
# File tk/lib/tk/entry.rb, line 58 def selection_adjust(index) tk_send_without_enc('selection', 'adjust', index) self end
# File tk/lib/tk/entry.rb, line 62 def selection_clear tk_send_without_enc('selection', 'clear') self end
# File tk/lib/tk/entry.rb, line 66 def selection_from(index) tk_send_without_enc('selection', 'from', index) self end
# File tk/lib/tk/entry.rb, line 70 def selection_present() bool(tk_send_without_enc('selection', 'present')) end
# File tk/lib/tk/entry.rb, line 73 def selection_range(s, e) tk_send_without_enc('selection', 'range', s, e) self end
# File tk/lib/tk/entry.rb, line 77 def selection_to(index) tk_send_without_enc('selection', 'to', index) self end
# File tk/lib/tk/entry.rb, line 85 def validate(mode = nil) if mode configure 'validate', mode else invoke_validate end end