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

_ClassType IntVar

Variable --+
           |
          IntVar

Value holder for integer variables.

Instance Methods [hide private]
 
__init__(self, master=None, value=None, name=None)
Construct an integer variable.
 
set(self, value)
Set the variable to value, converting booleans to integers.
 
get(self)
Return the value of the variable as an integer.

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

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

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

 

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 retained.

Overrides: Variable.__init__

set(self, value)

 

Set the variable to value, converting booleans to integers.

Overrides: Variable.set

get(self)

 

Return the value of the variable as an integer.

Overrides: Variable.get