textvariable

Specifies the name of a variable. The variable should be given in the form,

(#<widget> 'configure #:textvariable (tk-var 'varname))

You can read Tk-Vars as follows:

(get-tk-var 'varname)

You can write Tk-Vars as follows:

(set-tk-var! 'varname value)

The value of the corresponding variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as anchor or justify.


© Author | Home | Sitemap