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)
| 623 | _default = False |
| 624 | |
| 625 | def __init__(self, master=None, value=None, name=None): |
| 626 | """Construct a boolean variable. |
| 627 | |
| 628 | MASTER can be given as master widget. |
| 629 | VALUE is an optional value (defaults to False) |
| 630 | NAME is an optional Tcl name (defaults to PY_VARnum). |
| 631 | |
| 632 | If NAME matches an existing variable and VALUE is omitted |
| 633 | then the existing value is retained. |
| 634 | """ |
| 635 | Variable.__init__(self, master, value, name) |
| 636 | |
| 637 | def set(self, value): |
| 638 | """Set the variable to VALUE.""" |