Skip to Main Content
Learning Perl/Tk
book

Learning Perl/Tk

by Nancy Walsh
January 1999
Beginner content levelBeginner
373 pages
9h 43m
English
O'Reilly Media, Inc.
Content preview from Learning Perl/Tk

5.3. Fun Things to Try

There aren't too many exciting things you can do with label widgets, but it's a good idea to practice using the entry widget.

  • Create an entry and label combination and display the same information in both. When you put something new in the entry, the label should display it simultaneously.

  • Create a database entry form, labeling each entry with Name, Address, City, State, Zip, Phone. Add an Update button that will perform some error checking on the information in the entry widgets based on the information expected.

  • Create a window with an entry widget and several buttons, each of which does something different to the entry widget. Some suggestions: Clear, Delete Selection, or Default (replace with original string).

  • Create an entry widget and type something in it. Put a button in the window that will reverse the string in the entry widget when pressed.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Perl/Tk

Mastering Perl/Tk

Stephen Lidie, Nancy Walsh

Publisher Resources

ISBN: 1565923146Supplemental ContentCatalog PageErrata