
1
Perl/Tk Pocket Reference
Introduction
Perl/Tk is the extension to Perl for creating graphical user
interfaces. This small book presents every Perl/Tk graphical
element, including general widget and variable information,
callbacks, geometry management, bindings, events, window
management, as well as composite widget, font, and image
creation and manipulation commands, all of which are
described in detail in O’Reilly & Associates’ Learning Perl/Tk.
I am very grateful to Achim Bohnet, who tenaciously
reviewed this work as it evolved.
Conventions
1. General Perl/Tk
Widget Information
All Perl/Tk programs must have a use Tk statement. To use
special Perl/Tk widgets like Dialog a use Tk::Dialog statement
is required.
All widgets are created with:
$widget = $parent ->widgetClass (?-option => value, ...?);
fixed
denotes text that you enter literally
italics means variable text, i.e., things you must fill in
bold is a keyword, i.e., a word with a special meaning
?... ? denotes an optional part