# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 73 def __validation_class_list super() << EntryfieldValidate end
def validate(cmd = Proc.new, args = nil) if cmd.kind_of?(ValidateCmd) configure('validate', cmd) elsif args configure('validate', [cmd, args]) else configure('validate', cmd) end end def invalid(cmd = Proc.new, args = nil) if cmd.kind_of?(ValidateCmd) configure('invalid', cmd) elsif args configure('invalid', [cmd, args]) else configure('invalid', cmd) end end
####################################
# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 102 def clear tk_call(@path, 'clear') self end
# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 123 def cursor=(index) tk_send_without_enc('icursor', index) #self index end
# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 107 def delete(first, last=None) tk_send_without_enc('delete', first, last) self end
# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 143 def dragto(pos) tk_send_without_enc('scan', 'dragto', pos) self end
# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 130 def index(index) number(tk_send_without_enc('index', index)) end
# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 134 def insert(pos,text) tk_send_without_enc('insert', pos, _get_eval_enc_str(text)) self end
# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 139 def mark(pos) tk_send_without_enc('scan', 'mark', pos) self end
# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 147 def selection_adjust(index) tk_send_without_enc('selection', 'adjust', index) self end
# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 151 def selection_clear tk_send_without_enc('selection', 'clear') self end
# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 155 def selection_from(index) tk_send_without_enc('selection', 'from', index) self end
# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 159 def selection_present() bool(tk_send_without_enc('selection', 'present')) end
# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 162 def selection_range(s, e) tk_send_without_enc('selection', 'range', s, e) self end
# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 166 def selection_to(index) tk_send_without_enc('selection', 'to', index) self end
# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 112 def value _fromUTF8(tk_send_without_enc('get')) end
# File tk/lib/tkextlib/iwidgets/entryfield.rb, line 115 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/entryfield.rb, line 172 def xview(*index) if index.size == 0 list(tk_send_without_enc('xview')) else tk_send_without_enc('xview', *index) self end end
Commenting is here to help enhance the documentation. For example, code samples, 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.
If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.