Message53029
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.
|
|
Date |
User |
Action |
Args |
2007-08-23 15:59:40 | admin | link | issue1774370 messages |
2007-08-23 15:59:40 | admin | create | |
|