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

12.6. Fun Things to Try

When you use the Scrolled method, you are using frames without even knowing it. The newly scrolled widget is placed inside a frame with its scrollbars so that it behaves as one contained widget. Here are some other ways you can use frames:

  • Create several lines of labels with entry widgets. Each `line' needs to be in its own frame so it will look right.

  • Place an image along one side of your application window. Put the widgets in a frame (on the left or on the right) and place the image on the other side of them.

  • Place a scrolled listbox in your application window, a frame containing three buttons (OK, Cancel, Apply) along the bottom of the window, and a frame along the right containing two buttons (Delete, Add) that manipulate the listbox. By using frames, you can keep the buttons that belong together in one area instead of grouping them with other buttons that serve a different purpose.

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