| OverviewThis tutorial for Perl/Tk, the extension to Perl for
creating graphical user interfaces, shows how to use Perl/Tk
to build graphical, event-driven applications for both
Windows and UNIX. Rife with illustrations, it teaches how to
implement and configure each Perl/Tk graphical element. Editorial ReviewsAmazon.comBy combining the rough-and-ready Perl language with the graphical user interface (GUI) capabilities of the Tk toolkit, Perl/Tk makes it easy to write event-based GUI applications quickly--once you know what you're doing. Learning Perl/Tk shows you how to build GUIs with everyone's favorite public-domain programming language. This book focuses only on GUIs--it leaves in-depth exploration of the Perl language to other books. ( Learning Perl is the best of that genre.) Assuming only a basic familiarity with Perl, Learning Perl/Tk shows you what you need to know to create graphical front ends for Perl programs. Author Nancy Walsh starts with a quick orientation, showing you how to set up Perl/Tk and giving you some simple examples of what GUI source code looks like. Then, she details the use and functions of geometry managers, which the Tk module uses to arrange interface elements. From there, she explores each widget individually, showing how to use buttons, checkbuttons, radiobuttons, labels, entries, and more. She also addresses event handlers. Her discussion of each widget is clear and liberally sprinkled with examples. One appendix lists the default values of the Tk widgets in tabular form; another spotlights the differences among versions of Perl and Tk for various operating systems. A final appendix explores the font-management capabilities of Tk 8.0. This book doesn't come with a companion disk, and it would be nice to have the examples available locally. However, the publisher maintains a library of related files on its Web site. --David Wall | Book DescriptionLearning 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. |
Other Readers Also Read | Top Sellers in This Category | Browse Similar Topics | | | Top Level Categories:Sub-Categories: | | | |
Reader Reviews From Amazon (Ranked by 'Helpfulness') Average Customer Rating: based on 31 reviews. Very Easy to Follow, 2007-05-21 Reviewer rating: Although I don't program in Perl, I bought this book because it was recommended as a reference for using TK with the Ruby language, since there is no good documentation for Ruby/TK. I found the book very easy to use, and was able to make some fairly complex GUI's pretty quickly. I use the book a lot, and highly recommend it. | Good tutorial, 2004-03-09 Reviewer rating: This is a solid tutorial that goes through the most important components in Tk and contains good illustrations. You won't become an expert (see that word "Learning" in the title?), and the writing is clear but not spectacular. Before getting this book I tried to read up on Tk on the web and spent many hours trying to get a simple text component to do my bidding. After having read this book, it took me an hour to get the entire app done. Don't repeat my mistake; get this book if you do Perl/Tk! | An excellent Perl/Tk primer, 2003-11-17 Reviewer rating: I used this book to learn the basics of Tk with Perl under Windows, and found it a fine, concise and clear reference. It got me quickly to the point of being able to develop useful graphical applications and gave what I felt to be a good grounding in important concepts and points. It does not address absolutely everything you will eventually need to know, but at least you will have a good grounding and probably find the subsequent learning curve a lot shallower as a result. Important coverage of the geometry managers (pack, place and grid) is well presented and good examples are given. Numerous other possibly trivial but extremely helpful things are here too: how to set the size and initial screen location of Tk-generated window (use the 'geometry' method), a good discussion of the colour-management issues of the various widgets - including how to find the file of colour definitions under various operating systems, and a clear explanation of the various ways to call subroutines (and pass parameters to them) using '-command'. Ms. Walsh's style is light and conversational, not at all 'difficult' and without the usual 'clever geek' frills (for example, I personally hate the use of 'foo' and 'bar' as variable and function names everywhere in computing books - it smacks of self-congratulatory cleverness, and more than a tad 'Oh, don't you get it?'). Fortunately that is absent here. Highly recommended if you are new to Tk under Perl, as it contains essential information and is well written and presented. Definitely worth the money. | An adequate reference, 2003-06-25 Reviewer rating: This book would be more aptly titled "Perl/Tk: Lengthy Appendices, with Introduction". As some other reviewers have noted, the book presents the Perl/Tk interface in repetitive and extrodinary detail. Unfortunately, no concise summary of all this information exists on 1 or 2 pages, so the book fails to hold a niche as a desk reference. If you're looking for raw and useful code, you'll be disappointed for sure--the book consists of almost none. The in-text examples are short and trivial, rarely serving a useful or real world application. This would not be so bad, had the author included some complete (or perhaps even partial) solutions to the suggested exercises, found at the end of nearly every chapter. Unfortunately, such code is nowhere to be found. So what redeeming qualities does it have? I approached this book without experience with GUIs or Tk, and while learning Perl. Through the help of this book I've picked up the basics I need to create programs which allow for simple GUIs to make my programs accessible to those scared of the command line. | Useless without examples, 2001-10-22 Reviewer rating: This book is little more than a reference guide. It contains virtually no examples and often doesn't even explain how to implement some of the methods it teaches you. Exactly how do you pack widgets into a frame? Chapter 12 is devoted to frames and yet it never once tells you how to pack items into one. I eventually had to look this up in a friend's copy of "Advanced Perl Programming" (Chapter 14)! What's more amazing is that the book, somewhat perversely, goes into a verbose description of the options for each widget you can create. Why not put this at the end of the book in a table? That's what appendices are for! By far the best way to learn is by example and on this front, the book fails miserably. What a complete waste of money. |
Some information above was provided using data from Amazon.com. View at Amazon > |
| |
|
|