Construct a float variable. MASTER can be given as master widget. VALUE is an optional value (defaults to 0.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 retained
(self, master=None, value=None, name=None)
| 602 | _default = 0.0 |
| 603 | |
| 604 | def __init__(self, master=None, value=None, name=None): |
| 605 | """Construct a float variable. |
| 606 | |
| 607 | MASTER can be given as master widget. |
| 608 | VALUE is an optional value (defaults to 0.0) |
| 609 | NAME is an optional Tcl name (defaults to PY_VARnum). |
| 610 | |
| 611 | If NAME matches an existing variable and VALUE is omitted |
| 612 | then the existing value is retained. |
| 613 | """ |
| 614 | Variable.__init__(self, master, value, name) |
| 615 | |
| 616 | def get(self): |
| 617 | """Return the value of the variable as a float.""" |