Entry widgets are simple one-line text widgets. They do not support tags, marks, or embedded windows. The indexing syntax is consequently simpler:
Index into its contents, starting from 0.
End of the text.
The position immediately after the insertion cursor.
.
first, sel.lastIndicates the first and last character of a tag.
The index argument for all methods in Table A.7 accepts any of the styles described above.
Properties | Description |
---|---|
show | If false, it displays "*", not the real contents, and is used for obtaining passwords. Note that if the text is selected and pasted elsewhere, the real contents show up. |
Methods | |
get (index) | Gets the entire string. |
insert (index, string) | Inserts a string at the index. |
index (index) | Returns the numerical index. |
selectionFrom (index) selectionTo (index) selection (from,to) selectionClear | To set or adjust the selection. |
selectionPresent |