TKinter text widget clear
hello, i have written some code to analyze some data and then write a text file containing the results. i then display the text file in a text widget. problem is that i want to clear the contents of the text widget upon the initiation of a run, so that old data is not still displayed before the new results become available. i cannot get the widget to clear during a run any suggestions?
|
Tkinter is an interface to tcl/tk. The Tk to clear a Text widget is "delete 1.0 end"
|
Thanks. I tried that as a line of code in my file and it gave me a syntax error. any suggestions?
|
Could someone tell me how to clear the text widget as described above?
|
Quote:
|
All times are GMT -5. The time now is 01:23 PM. |