Construct a boolean variable. MASTER can be given as master widget. VALUE is an optional value (defaults to False) NAME is an optional Tcl name (defaults to PY_VARnum). If NAME matches an existing variable and VALUE is omitted then the existing value is reta
(self, master=None, value=None, name=None)
| 641 | _default = False |
| 642 | |
| 643 | def __init__(self, master=None, value=None, name=None): |
| 644 | """Construct a boolean variable. |
| 645 | |
| 646 | MASTER can be given as master widget. |
| 647 | VALUE is an optional value (defaults to False) |
| 648 | NAME is an optional Tcl name (defaults to PY_VARnum). |
| 649 | |
| 650 | If NAME matches an existing variable and VALUE is omitted |
| 651 | then the existing value is retained. |
| 652 | """ |
| 653 | Variable.__init__(self, master, value, name) |
| 654 | |
| 655 | def set(self, value): |
| 656 | """Set the variable to VALUE.""" |