Module Tkinter :: Class DoubleVar
[hide private]
[frames] | no frames]

_ClassType DoubleVar

Variable --+
           |
          DoubleVar

Value holder for float variables.

Instance Methods [hide private]
 
__init__(self, master=None, value=None, name=None)
Construct a float variable.
 
get(self)
Return the value of the variable as a float.

Inherited from Variable: __del__, __eq__, __str__, set, trace, trace_variable, trace_vdelete, trace_vinfo

Class Variables [hide private]
  _default = 0.0
Method Details [hide private]

__init__(self, master=None, value=None, name=None)
(Constructor)

 

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.

Overrides: Variable.__init__

get(self)

 

Return the value of the variable as a float.

Overrides: Variable.get