Home | History | Annotate | Download | only in lib-tk

Lines Matching defs:Variable

198 class Variable:
205 """Construct a variable
211 If NAME matches an existing variable and VALUE is omitted
229 """Unset the variable in Tcl."""
232 """Return the name of the variable in Tcl."""
235 """Set the variable to VALUE."""
238 """Return value of variable."""
241 """Define a trace callback for the variable.
245 the variable is read, written or undefined.
250 self._tk.call("trace", "variable", self._name, mode, cbname)
254 """Delete the trace callback for a variable.
268 Note: if the Variable's master matters to behavior
274 class StringVar(Variable):
278 """Construct a string variable.
284 If NAME matches an existing variable and VALUE is omitted
287 Variable.__init__(self, master, value, name)
290 """Return value of variable as string."""
296 class IntVar(Variable):
300 """Construct an integer variable.
306 If NAME matches an existing variable and VALUE is omitted
309 Variable.__init__(self, master, value, name)
312 """Set the variable to value, converting booleans to integers."""
315 return Variable.set(self, value)
318 """Return the value of the variable as an integer."""
321 class DoubleVar(Variable):
325 """Construct a float variable.
331 If NAME matches an existing variable and VALUE is omitted
334 Variable.__init__(self, master, value, name)
337 """Return the value of the variable as a float."""
340 class BooleanVar(Variable):
344 """Construct a boolean variable.
350 If NAME matches an existing variable and VALUE is omitted
353 Variable.__init__(self, master, value, name)
356 """Return the value of the variable as a bool."""
400 """Set Tcl internal variable, whether the look and feel
428 """Wait until the variable is modified.
432 self.tk.call('tkwait', 'variable', name)
450 """Set Tcl variable NAME to VALUE."""
453 """Return value of Tcl variable NAME."""
2399 """Set the variable end of a selection in item TAGORID to INDEX."""
2416 underline, variable, width, wraplength."""
2495 """Set the variable end of a selection to INDEX."""
2774 state, takefocus, text, textvariable, underline, value, variable,
2801 tickinterval, to, troughcolor, variable, width."""
3204 def __init__(self, master, variable, value, *values, **kwargs):
3206 the resource textvariable set to VARIABLE, the initially selected
3209 kw = {"borderwidth": 2, "textvariable": variable,
3223 command=_setit(variable, value, callback))
3226 command=_setit(variable, v, callback))