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

_ClassType StringVar

Variable --+
           |
          StringVar

Value holder for strings variables.

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

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

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

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

 

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.

Overrides: Variable.__init__

get(self)

 

Return value of variable as string.

Overrides: Variable.get