SDS2 Parametric API
 All Classes Namespaces Functions Variables Pages
List of all members
Tkinter.StringVar Class Reference

Value holder for strings variables. More...

Inheritance diagram for Tkinter.StringVar:
Tkinter.Variable

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

Detailed Description

Value holder for strings variables.

Constructor & Destructor Documentation

def Tkinter.StringVar.__init__ (   args)
 Construct a string variable.
 
 MASTER can be given as master widget.
 VALUE is an optional value (defaults to "")
 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.StringVar.__del__ (   args)
 Unset the variable in Tcl.

Reimplemented from Tkinter.Variable.

Member Function Documentation

def Tkinter.StringVar.__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.StringVar.__str__ (   args)
 Return the name of the variable in Tcl.

Reimplemented from Tkinter.Variable.

def Tkinter.StringVar.get (   args)
 Return value of variable as string.

Reimplemented from Tkinter.Variable.

def Tkinter.StringVar.set (   args)
 Set the variable to VALUE.

Reimplemented from Tkinter.Variable.

def Tkinter.StringVar.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.StringVar.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.StringVar.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.StringVar.trace_vinfo (   args)
 Return all trace callback information.

Reimplemented from Tkinter.Variable.