On May 8, 2:15 pm, Rob Williscroft <[EMAIL PROTECTED]> wrote: > wrote innews:[EMAIL PROTECTED] > comp.lang.python: > > > 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' > > print w.cget( "state" ) > > Rob. > --http://www.victim-prime.dsl.pipex.com/
Thanks Rob, that does it. -- http://mail.python.org/mailman/listinfo/python-list
