O'Reilly logo

Tcl/Tk 8.5 Programming Cookbook by Bert Wheeler

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

Creating a button widget

Through the button the user is provided with a means to interact with the GUI and our program. This is accomplished through the button's ability to manually execute commands in your application. These actions may be default, as in the exit command, or custom procedures that we have written.

The keywords are described in the Tk main pages as follows:

Standard Keywords

Interpretation

-activebackground

Specifies the background color to be used when drawing the element. The active background is the color used when the mouse is over the element and when pressing the mouse button will initiate an action.

-activeforeground

Specifies the foreground color to be used when drawing the element. The active foreground is the ...

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