Clearing a Text Widget

2005-07-22 Thread Kane Bonnette
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
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Clearing a Text Widget

2005-07-22 Thread Kane Bonnette
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
-- 
http://mail.python.org/mailman/listinfo/python-list