--- Tkinter_orig.py Tue Aug 14 15:48:28 2007 +++ Tkinter_new.py Tue Aug 14 15:59:28 2007 @@ -2348,6 +2348,14 @@ def toggle(self): """Toggle the button.""" self.tk.call(self._w, 'toggle') + def get(self): + """Get the value of the associated variable. + This is the default variable created by Tk + unless changed by setting the 'variable' attribute.""" + return self.tk.globalgetvar(self['variable']) + def set(self, value): + """Set the value of associated variable.""" + return self.tk.globalsetvar(self['variable'], value) class Entry(Widget): """Entry widget which allows to display simple text."""