PyDocs

Nav

Graphical user interfaces with Tk

Entry

tkinter

class
  • Entry(master=None, cnf={}, **kw)
An Entry widget displays a single line of text and lets the user edit it. Inherits from Widget and XView; since entries can hold strings too long to fit in the window, they support horizontal scrolling through xview().
Members of Entry

d

delete
Delete the characters from index first up to but not including index last.

g

get
Return the entry’s current string.

i

icursor
Arrange for the insertion cursor to be displayed just before the character given by index.
index
Return the numerical index corresponding to index.
insert
Insert string just before the character given by index.

s

scan_dragto
Compute the difference between x and the x given to the last scan_mark() call, and adjust the view left or right by 10 times that difference.
scan_mark
Record x and the current view in the entry window, for use with later scan_dragto() calls.
select_adjust
Locate the end of the selection nearest to the character given by index, and adjust that end to be at index (including but not going beyond it); the other end becomes the anchor point for future sele…
select_clear
Clear the selection if it is currently in this widget.
select_from
Set the selection anchor point to just before the character given by index, without changing the selection.
select_present
Return True if there are characters selected in the entry, False otherwise.
select_range
Set the selection to include the characters starting with the one indexed by start and ending with the one just before end.
select_to
Set the selection between the anchor point and index: if index is before the anchor point, the selection runs from index up to but not including the anchor; if index is after it, from the anchor up t…
selection_adjust
Locate the end of the selection nearest to the character given by index, and adjust that end to be at index (including but not going beyond it); the other end becomes the anchor point for future sele…
selection_clear
Clear the selection if it is currently in this widget.
selection_from
Set the selection anchor point to just before the character given by index, without changing the selection.
selection_present
Return True if there are characters selected in the entry, False otherwise.
selection_range
Set the selection to include the characters starting with the one indexed by start and ending with the one just before end.
selection_to
Set the selection between the anchor point and index: if index is before the anchor point, the selection runs from index up to but not including the anchor; if index is after it, from the anchor up t…
0 Examples
No examples for tkinter/Entry.
See Also
No see-alsos for tkinter/Entry
0 Notes
No notes for Entry