November 1999
Intermediate to advanced
832 pages
19h 28m
English
Buttons and menus are the primary way that applications expose functions to users. This chapter describes how to create and manipulate buttons and menus.
A button widget is associated with a Tcl command that invokes an action in the application. The checkbutton and radiobutton widgets affect an application indirectly by controlling a Tcl variable. A menu elaborates on this concept by organizing button-like items into related sets, including cascaded menus. The menubutton widget is a special kind of button that displays a menu when you click on it.
Tk 8.0 provides a cross-platform menu bar facility. The menu bar is really just a menu that is displayed horizontally along the top of your application's main window. ...
Read now
Unlock full access