Return the value of the variable as a bool.
(self)
| 659 | initialize = set |
| 660 | |
| 661 | def get(self): |
| 662 | """Return the value of the variable as a bool.""" |
| 663 | try: |
| 664 | return self._tk.getboolean(self._tk.globalgetvar(self._name)) |
| 665 | except TclError: |
| 666 | raise ValueError("invalid literal for getboolean()") |
| 667 | |
| 668 | |
| 669 | def mainloop(n=0): |