O'Reilly logo

Practical Programming in Tcl & Tk, Third Edition by Brent B. Welch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Button Operations

Table 27-2 summarizes the operations on button widgets. In the table, $w is a button, checkbutton, radiobutton, or menubutton, except when noted. For the most part, these operations are used by the script libraries that implement the bindings for buttons. The cget and configure operations are the most commonly used by applications.

Table 27-2. Button operations.
$w cget optionReturns the value of the specified attribute.
$w configure ?option? ?value? ...Queries or manipulates the configuration information for the widget.
$w deselectDeselects the radiobutton or checkbutton. Set the radiobutton variable to the null string. Set the checkbutton variable to the off value.
$w flashRedisplays the button several times in alternate colors. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required