GUI Interface
In addition to the command-line interface, a GUI interface is created using the Tk toolkit (see Figure 15.1).
Figure 15.1. GUI interface to the disk database.
To build this GUI, we start by constructing the main window. At the top of this window is a category selector. This selector (set to All in Figure 15.1) lets the user decide which type of disk is displayed. The selector is constructed using a Tk::Optionmenu widget.
Below the category selector is the list of disks. A Tk::Listbox widget is used for the display.
At the bottom of the window is the action frame that contains all the action buttons.
The Add Pop-Up Window
When ...
Get Perl for C Programmers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.