tkinter get widget option value

rahulnag22 at yahoo.com rahulnag22 at yahoo.com
Tue May 8 14:40:38 EDT 2007


Hi,
If I have a button widget

w = Button(root, text = "Button", state = 'disabled')

How can I get the value of option 'state' from the widget 'w'.
I want something like --

print w.state  >> to print out >> 'disabled'

Thanks
Rahul




More information about the Python-list mailing list