Clearing a Text Widget

Kane Bonnette gtg216r at mail.gatech.edu
Fri Jul 22 23:42:52 EDT 2005


Kane Bonnette wrote:
> Does anyone know how the clear the text from a Tkinter Text Widget? The 
> delete(0, END) trick that works for Entry widgets doesn't work for Text
> 
> I get "0 is an invalid index" when i try to do so
> 
> Thanks in advance

In case anyone's wondering, you must use 0.0 instead of 0 on a Text Widget



More information about the Python-list mailing list