13.3. Review

It is a good idea to use another toplevel widget instead of the MainWindow if there is too much information to fit in one window. Using toplevels to group information is also sometimes a good idea. When to use an additional toplevel is a design decision that you'll have to make. You don't want to have too many windows for the user to navigate, but a well-designed application might be able to make use of one or two. For instance, the Tk module comes with a Tk::Dialog module that lets you easily display messages to the user. Check out the documentation included with the Dialog.pm file for more information on how to use it.

Get Learning Perl/Tk now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.