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