# File tk/lib/tk/entry.rb, line 106 def [](*args) self.value[*args] end
# File tk/lib/tk/entry.rb, line 109 def []=(*args) val = args.pop str = self.value str[*args] = val self.value = str val end
# File tk/lib/tk/entry.rb, line 28 def bbox(index) list(tk_send_without_enc('bbox', index)) end
# File tk/lib/tk/entry.rb, line 31 def cursor number(tk_send_without_enc('index', 'insert')) end
# File tk/lib/tk/entry.rb, line 35 def cursor=(index) tk_send_without_enc('icursor', index) #self index end
# File tk/lib/tk/entry.rb, line 48 def delete(first, last=None) tk_send_without_enc('delete', first, last) self end
# File tk/lib/tk/entry.rb, line 56 def dragto(pos) tk_send_without_enc('scan', 'dragto', pos) self end
# File tk/lib/tk/entry.rb, line 41 def index(idx) number(tk_send_without_enc('index', idx)) end
# File tk/lib/tk/entry.rb, line 44 def insert(pos,text) tk_send_without_enc('insert', pos, _get_eval_enc_str(text)) self end
# File tk/lib/tk/entry.rb, line 84 def invoke_validate bool(tk_send_without_enc('validate')) end
# File tk/lib/tk/entry.rb, line 52 def mark(pos) tk_send_without_enc('scan', 'mark', pos) self end
# File tk/lib/tk/entry.rb, line 60 def selection_adjust(index) tk_send_without_enc('selection', 'adjust', index) self end
# File tk/lib/tk/entry.rb, line 64 def selection_clear tk_send_without_enc('selection', 'clear') self end
# File tk/lib/tk/entry.rb, line 68 def selection_from(index) tk_send_without_enc('selection', 'from', index) self end
# File tk/lib/tk/entry.rb, line 72 def selection_present() bool(tk_send_without_enc('selection', 'present')) end
# File tk/lib/tk/entry.rb, line 75 def selection_range(s, e) tk_send_without_enc('selection', 'range', s, e) self end
# File tk/lib/tk/entry.rb, line 79 def selection_to(index) tk_send_without_enc('selection', 'to', index) self end
# File tk/lib/tk/entry.rb, line 87 def validate(mode = nil) if mode configure 'validate', mode else invoke_validate end end
# File tk/lib/tk/entry.rb, line 95 def value _fromUTF8(tk_send_without_enc('get')) end
# File tk/lib/tk/entry.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
Commenting is here to help enhance the documentation. For example, sample code, or clarification of the documentation.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.