January 19th, 2005, 05:12 PM
clear Text widget
I'am using Tkinter module and I have created a Text widget.
I want to use the delete method to clear all text in the text widget.
This method takes two arguments, two indexes where the text inbetween is removed. At least as I understood it
The problem is I don't know what the index is for the first element. END is the last element...
a = Text(....)
Zero doesnt work...
January 20th, 2005, 12:06 AM
The first index must have the form line.colunm, where linenumbering begins with 1 and columns with 0.
This should do what you want.