tkinter question
Alex Martelli
aleaxit at yahoo.com
Tue Sep 14 10:12:07 EDT 2004
Ajay <abra9823 at mail.usyd.edu.au> wrote:
> hi!
>
> in my gui i have a set of radio buttons and some entry widgets.
> what i'd like is that unless a particular radio button is selected, i
> shouldn't be able to enter information in the entry widget.
>
> how would i do that? make the widget non-editable?
theEntry.config(state=DISABLED)
Remember that while the entry is disabled you can't alter its text, e.g.
with insert and delete, you need to set state back to NORMAL
(transiently) to modify the text in an Entry widget.
Alex
More information about the Python-list
mailing list