home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Book HomeMastering Perl/TkSearch this book

23.9. The Pane Widget

The Pane widget is essentially a Frame widget that may be scrolled. Within the Pane, you can pack whatever widgets however you like:

my $pane = $mw->Scrolled(qw/Pane -scrollbars osw/)->pack;

foreach (1 .. 20) {
    $pane->Label(-text => "Label $_")->pack;
}

The previous code produced Figure 23-17.

Figure 23-17

Figure 23-17. A Pane widget with a Scrollbar



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.