In the remainder of this chapter, we'll discuss each widget, the commands used to create each widget, the options used to configure them, and the methods for manipulating them.
You'll find that there are many, many configuration options shared by multiple widgets. We could list them individually for each widget, but in the interest of saving a tree or two, we will instead list the shared options up front rather than repeating them over and over. That way, we can concentrate on the options that are crucial to the behavior of each particular widget and save the reader from being lost in a sea of options.
The following options are supported by the widgets noted:
$arrow = $mainwindow->Photo(-file => "image.gif"); $mainwindow->Button(-image => $arrow, -command => sub {exit})->pack;
Applicable widgets: Button, Checkbutton, Label, Menubutton, Optionmenu, Radiobutton.
Copyright © 2002 O'Reilly & Associates. All rights reserved.