xref: /inferno-os/man/9/variable (revision e57c7e16a3789cd4de1a3c2560d49b1ee39cd10a)
VARIABLE 9
NAME
variable - interrogate a button variable
SYNOPSIS
\f5variable var ?value?
DESCRIPTION
Variable queries or sets the value of a Tk radiobutton, checkbutton or choicebutton variable. An error diagnostic will be returned if the variable is of the wrong type (if for instance it is the name of a named channel).

If value is given, the value of the variable is set to that value, and any associated buttons will subsequently reflect this in their appearance. Omitting the value argument returns the current value of the variable.

The special variable lasterror holds the text of the last Tk error encountered. It resets when queried.

SEE ALSO
checkbutton (9), choicebutton (9), radiobutton (9)