28.7 Variables

The class Tk.variable provides the following methods. Note that it does not provide a method for closing.

tkInit

tkInit(+Tcl <= unit)

Creates a new tickle variable with initial value Tcl.

tkSet

tkSet(+Tcl)

Sets the variable's value to +Tcl.

tkReturn

tkReturn(... ?S)
tkReturnString(... 
?S)
tkReturnAtom(... 
?A)
tkReturnInt(... 
?IB)
tkReturnFloat(... 
?FB)
tkReturnList(... 
?Ss)
tkReturnListString(... 
?Ss)
tkReturnListAtom(... 
?As)
tkReturnListInt(... 
?IBs)
tkReturnListFloat(... 
?FBs)

Returns the current value of the variable.


Denys Duchier, Leif Kornstaedt, Martin Homik, Tobias Müller, Christian Schulte and Peter Van Roy
Version 1.4.0 (20080702)