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

8.19. Fun Things to Try

  • Create a scrollable text widget. Insert a button widget that has text describing the foreground color of the text widget and when you click the button, have it cycle between several different colors, updating the button's -foreground color and text. For a practical application, have several buttons, each associated with a different color in your application. When the user clicks the button, you can change the color to a different value (possibly using the ColorEdit composite widget).

  • Create a text widget that will display a read-only file. Create two buttons on the window, one to decrease the font within the text widget, the other to increase it.,

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