Construct an integer variable. MASTER can be given as master widget. VALUE is an optional value (defaults to 0) 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 retaine
(self, master=None, value=None, name=None)
| 577 | _default = 0 |
| 578 | |
| 579 | def __init__(self, master=None, value=None, name=None): |
| 580 | """Construct an integer variable. |
| 581 | |
| 582 | MASTER can be given as master widget. |
| 583 | VALUE is an optional value (defaults to 0) |
| 584 | NAME is an optional Tcl name (defaults to PY_VARnum). |
| 585 | |
| 586 | If NAME matches an existing variable and VALUE is omitted |
| 587 | then the existing value is retained. |
| 588 | """ |
| 589 | Variable.__init__(self, master, value, name) |
| 590 | |
| 591 | def get(self): |
| 592 | """Return the value of the variable as an integer.""" |