Cover image for Learning Perl/Tk
Learning Perl/Tk
Walsh, Nancy.
Personal Author:
First edition.
Publication Information:
Beijing ; Sebastopol, CA : O'Reilly, [1999]

Physical Description:
xvi, 358 pages : illustrations ; 24 cm
General Note:
Includes index.

"Graphical user interfaces with Perl"--Cover.
Title Subject:
Format :


Call Number
Material Type
Home Location
Item Holds
QA76.73.P22 W36 1999 Adult Non-Fiction Central Closed Stacks

On Order



Learning Perl/Tk is a tutorial for Perl/Tk, the extension to Perl for creating graphical user interfaces. With Tk, Perl programs can be window-based rather than command-line based, with buttons, entry fields, listboxes, menus, and scrollbars. Originally developed for the Tcl language, the Perl port of the Tk toolkit liberates Perl programmers from the world of command-line options, STDIN, and STDOUT, allowing them to build graphical, event-driven applications for both Windows and UNIX.This book is aimed at Perl novices and experts alike. It explains the reasoning behind event-driven applications and drills in guidelines on how to best design graphical applications. It teaches how to implement and configure each of the Perl/Tk graphical elements step-by-step. Special attention is given to the geometry managers, which are needed to position each button, menu, label and listbox in the window frame.Although this book does not teach basic Perl, anyone who has written even the simplest Perl program should be able to learn Tk from this book. The writing is breezy and informal, and gets right to the point of what you need to know and why. The book is rife with illustrations that demonstrate how each element is drawn and how its configuration options affect its presentation. Learning Perl/Tk is for every Perl programmer who would like to implement simple, easy-to-use graphical interfaces.

Author Notes

Nancy Walsh has been involved with Perl (and Perl/Tk) since 1996. She received a Computer Science degree from the University of Arizona in 1993, and currently works as a Principal Consultant for XOR, Inc. doing J2EE and Java work on various projects. Nancy has taught several Perl/Tk Tutorials at the O'Reilly Open Source Conference and is also the author of Learning Perl/Tk.

Table of Contents

Chapter 1 Introduction to Perl/Tk
Chapter 2 Geometry Management
Chapter 3 The Basic Button
Chapter 4 Checkbuttons and Radiobuttons
Chapter 5 Label and Entry Widgets
Chapter 6 Scrollbars
Chapter 7 The Listbox Widget
Chapter 8 The Text Widget
Chapter 9 The Canvas Widget
Chapter 10 The Scale Widget
Chapter 11 Menus
Chapter 12 Frames
Chapter 13 Toplevel Widgets
Chapter 14 Binding Events
Chapter 15 Composite Widgets
Chapter 16 Methods for Any Widget
Configuring Widgets with configure and cget
Operating System Differences