This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pysquared
Recipients
Date 2007-08-14.22:38:20
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Add get() and set(value) methods to the Checkbutton class, providing access to the default variable created by Tk.

See man checkbutton(3tk).

The get() and set(value) method names are analogous to those in the Variable class.

When using get() and set(), you do not have to create a XyzVar instance to pass to a Checkbutton's 'variable' attribute.

This is much simpler and more intuitive, and also avoids leaking the default variable.

If you do override the 'variable' attribute, the get() and set(value) also give access to your new variable.

Setting 'onvalue' and 'offvalue' also work as expected.
History
Date User Action Args
2007-08-23 15:59:40adminlinkissue1774370 messages
2007-08-23 15:59:40admincreate