Text Indexes
In an Entry widget, several indexes are defined to identify positions in the entry text. These are used by the methods that retrieve and manipulate entry text.
n
An integer representing a character position, with
0
as the first character in the string.insert
The character directly after the insert cursor.
sel.first
The first character in the selection block.
sel.last
The character after the last character in the selection block.
anchor
The anchored position.
end
The position just after the last character in the entry string.
@
x
The character containing the specified
x
coordinate.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.