Tkinter.Text: prevent user modifications

terry tg5027 at citlink.net
Sat Aug 3 03:33:35 CEST 2002


> What is the best way to prevent user from editing the contents 
>of
> Tkinter.Text wiget but editing from the code would be possible.
> config(state) changes this, but then Tkinter.Text.insert won't 
>work. Do I
> have to change the behavior of the widget every time I insert 
>text or is
> there another way? Is it possible that the user can edit it when
> the state configuration is temporarily changed?-)

Isn't this a Label widget rather than a Text widget when it never 
gets modified by the user?




More information about the Python-list mailing list