variable

Specifies the name of a global variable to link to the scale. Whenever the value of the variable changes, the scale will update to reflect this value. Whenever the scale is manipulated interactively, the variable will be modified to reflect the scale's new value.

(#<widget> 'configure #:variable (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)

© Author | Home | Sitemap