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)
| 595 | _default = 0 |
| 596 | |
| 597 | def __init__(self, master=None, value=None, name=None): |
| 598 | """Construct an integer variable. |
| 599 | |
| 600 | MASTER can be given as master widget. |
| 601 | VALUE is an optional value (defaults to 0) |
| 602 | NAME is an optional Tcl name (defaults to PY_VARnum). |
| 603 | |
| 604 | If NAME matches an existing variable and VALUE is omitted |
| 605 | then the existing value is retained. |
| 606 | """ |
| 607 | Variable.__init__(self, master, value, name) |
| 608 | |
| 609 | def get(self): |
| 610 | """Return the value of the variable as an integer.""" |