Re: tkinter get widget option value

2007-05-09 Thread rahulnag22
On May 8, 6:51 pm, James Stroud <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi, > > If I have abuttonwidget > > > 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

Re: tkinter get widget option value

2007-05-08 Thread James Stroud
[EMAIL PROTECTED] wrote: > 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 > print w["sta

Re: tkinter get widget option value

2007-05-08 Thread rahulnag22
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 l

Re: tkinter get widget option value

2007-05-08 Thread Rob Williscroft
wrote in news:[EMAIL PROTECTED] in 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

tkinter get widget option value

2007-05-08 Thread rahulnag22
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 -- http://mail.python.org/mailman/listinfo/python-list