faqts : Computers : Programming : Languages : Python : Tkinter

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 8 people (88%) answered Yes
Recently 6 of 7 people (86%) answered Yes

Entry

How do I get the current index of the insertion character in an Entry widget?

Jun 15th, 2000 19:39
unknown unknown, Hans-Joachim Widmaier


After digging in Tk docs for some time I've finally found how to get the 
current index of the insertion character in an Entry widget:

  self.index("insert")

will do the trick. Fair enough, "insert" isn't listed in the INDICES 
section, just in a note (in the Text widget man page).