Tkinter question: position cursor within text widget
v.wehren
v.wehren at home.nl
Sun Jan 5 06:35:50 EST 2003
I have a small Tkinter question:
After loading the contens of a text file into a text widget with something
like: <snip>
content = inf.read()
self.textbox.insert(END, content)
self.textbox.focus_set()
</snip>
I want the insert cursor to be at the home position after the file has
loaded.Is there a simple method to position the cursor at a given index? I
haven't *found* any in the "prevailing" Tkinter sources across the web
yet...
Anybody?
Thanx!
Vincent Wehren
More information about the Python-list
mailing list