|
|
|
|
|
Those applications are pretty major ones; we'll start with much simpler examples and build up from there. We'll be covering each basic widget and all its associated options in detail. You'll learn how to make a window look the way you want it to look. You'll also learn how to make a window user-friendly and attractive. |
|
|
|
|
|
|
|
|
If you want to know more about Perl in general, you should read Learning Perl, Programming Perl, Advanced Perl Programming, and Perl Cookbook, which are also published by O'Reilly & Associates, Inc. There are also numerous FAQs and documents available on the Web. This book's focus is the Tk extension to Perl, which is a fairly specific portion of Perl. |
|
|
|
 |
|
|
|
|
Chapter 1, Introduction to Perl/Tk
The first chapter contains some interesting history about Perl and the Tk module. It starts you out with a simple Hello World program and gives a short introduction to event-driven programs. |
|
|
|
 |
|
|
|
|
Chapter 2, Geometry Management
Geometry management is probably the most important concept in using Perl/Tk. It determines how your widgets are to be drawn on the screen (or, in some cases, how not to be drawn on the screen). The three geometry managers-pack, grid, and place-are covered here. Most examples in the book use pack. |
|
|
|
 |
|
|
|
|
Chapter 3, The Basic Button
The button is the first widget we cover and there are lots of details here. There are also tons of code snippets and screen shots showing different ways to manipulate and mutilate the button widget. Many of the options discussed here are common among the other standard widgets. |
|
|
|
 |
|
|
|
|
Chapter 4, Checkbuttons and Radiobuttons
Checkbuttons and radiobuttons are similar to the standard button, but they look different and are usually programmed differently. |
|
|
|
 |
|
|
|
|
Chapter 5, Label and Entry Widgets
The label is the simplest widget of all. It is usually used with an entry widget, which is why they are included in the same chapter. The entry widget will let you get input from your user. |
|
|
|
 |
|
|
|
|
Chapter 6, Scrollbars
Certain widgets in Perl/Tk can be scrolled, which means they can contain more information than you can see on the screen. Scrollbars are used to navigate the data inside these widgets. Chapter 6 tells you how scrollbars communicate with each widget and what you need to do to create and use them. |
|
|
|
|