[issue1774370] Add Tkinter.Checkbutton get() and set(value)

Graham Horler report at bugs.python.org
Thu Jun 26 18:02:27 CEST 2008


Graham Horler <grahamh at users.sourceforge.net> added the comment:

I referred to the man page, as it says this:
 Command-Line Name:-variable ... Defaults to the name of the button 
within its parent.

When you create a Checkbutton widget without giving a variable=SomeVar, 
a default variable is created which Tkinter does not give you easy 
access to.

My patch adds easy access to this default variable.

This is analogous to being able to use an Entry widget without having 
to assign SomeVar to textvariable first.

Yes it could be a property, but Tkinter.py does not use property 
anywhere else, and I am stuck with having to support python 2.1.

What do you mean by "add it to all the other widgets that play with it"?

Thanks

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1774370>
_______________________________________


More information about the Python-bugs-list mailing list