diff options
Diffstat (limited to 'Master/tlpkg/tlperl/lib/Tk/demos/widtrib/Tiler.pl')
-rwxr-xr-x | Master/tlpkg/tlperl/lib/Tk/demos/widtrib/Tiler.pl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Master/tlpkg/tlperl/lib/Tk/demos/widtrib/Tiler.pl b/Master/tlpkg/tlperl/lib/Tk/demos/widtrib/Tiler.pl new file mode 100755 index 00000000000..c9a44b8c0b1 --- /dev/null +++ b/Master/tlpkg/tlperl/lib/Tk/demos/widtrib/Tiler.pl @@ -0,0 +1,15 @@ +# Tiler, arrange widgets in rows. + +use strict; +use Tk; +use Tk::Tiler; + +my $mw = MainWindow->new(); +my $tiler = $mw->Scrolled('Tiler'); +my $num = $tiler->cget('-rows') * $tiler->cget('-columns'); +$mw->Label(-text => "Tiler with $num widgets")->pack; +foreach (1 .. $num) { + $tiler->Manage( $tiler->Label(-text => "**$_**") ); +} +$tiler->pack(qw/-expand yes -fill both/); +MainLoop; |