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

_ClassType BooleanVar

Variable --+
           |
          BooleanVar

Value holder for boolean variables.

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

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

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

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

 

Construct a boolean variable.

MASTER can be given as master widget. VALUE is an optional value (defaults to False) 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 bool.

Overrides: Variable.get