"Patrick Lorenz" <[EMAIL PROTECTED]> wrote in
> I'd appreciate some help. I am just learning Tkinter, and want to
> deactivate a Text window when a certain radiobutton is selected. I
> cannot figure it out.
In future its best if you post some code to show what you
are attempting.
Meanwhile this works for me:
from Tkinter import *
t = Tk()
f = Frame(t)
f.pack()
T = Text(f, width=100, height=20)
T.pack()
def doit():
if T['state'] == DISABLED:
T['state'] = NORMAL
else: T['state'] = DISABLED
b = Button(f, text='Toggle state', command = doit)
b.pack()
t.mainloop()
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor