Value holder for boolean variables. More...
Methods defined here: | |
def | __init__ |
def | get |
Methods inherited from Variable: | |
def | __del__ |
def | __eq__ |
def | __str__ |
def | set |
def | trace_variable |
def | trace_variable |
def | trace_vdelete |
def | trace_vinfo |
Additional Inherited Members | |
Public Member Functions inherited from Tkinter.Variable |
Value holder for boolean variables.
def Tkinter.BooleanVar.__init__ | ( | args | ) |
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.
Reimplemented from Tkinter.Variable.
def Tkinter.BooleanVar.__del__ | ( | args | ) |
Unset the variable in Tcl.
Reimplemented from Tkinter.Variable.
def Tkinter.BooleanVar.__eq__ | ( | args | ) |
Comparison for equality (==). Note: if the Variable's master matters to behavior also compare self._master == other._master
Reimplemented from Tkinter.Variable.
def Tkinter.BooleanVar.__str__ | ( | args | ) |
Return the name of the variable in Tcl.
Reimplemented from Tkinter.Variable.
def Tkinter.BooleanVar.get | ( | args | ) |
Return the value of the variable as a bool.
Reimplemented from Tkinter.Variable.
def Tkinter.BooleanVar.set | ( | args | ) |
Set the variable to VALUE.
Reimplemented from Tkinter.Variable.
def Tkinter.BooleanVar.trace_variable | ( | args | ) |
Define a trace callback for the variable. MODE is one of "r", "w", "u" for read, write, undefine. CALLBACK must be a function which is called when the variable is read, written or undefined. Return the name of the callback.
Reimplemented from Tkinter.Variable.
def Tkinter.BooleanVar.trace_variable | ( | args | ) |
Define a trace callback for the variable. MODE is one of "r", "w", "u" for read, write, undefine. CALLBACK must be a function which is called when the variable is read, written or undefined. Return the name of the callback.
Reimplemented from Tkinter.Variable.
def Tkinter.BooleanVar.trace_vdelete | ( | args | ) |
Delete the trace callback for a variable. MODE is one of "r", "w", "u" for read, write, undefine. CBNAME is the name of the callback returned from trace_variable or trace.
Reimplemented from Tkinter.Variable.
def Tkinter.BooleanVar.trace_vinfo | ( | args | ) |
Return all trace callback information.
Reimplemented from Tkinter.Variable.