Geometrie-Manager pack X

 [Vorheriges Kapitel]  [Vorherige Seite]  [Inhaltsverzeichnis]  [Nächste Seite]  [Nächstes Kapitel]

pack8.pl
#!/usr/local/bin/perl
use strict;
use warnings;
use Tk;

my $top = new MainWindow;
my $buttons = $top->Frame;
foreach my $i (1..8) {
   my $button = $buttons->Button(-text => $i);
   $button->pack(-side => 'left',
      -fill => 'x', -expand => 1);
}
my $frame = $top->Frame(-width => 400, -height => 100,
   -bg => 'yellow');
$buttons->pack(-side => 'top', -fill => 'x');
$frame->pack(-side => 'top');
MainLoop;

 [Vorheriges Kapitel]  [Vorherige Seite]  [Inhaltsverzeichnis]  [Nächste Seite]  [Nächstes Kapitel]
Copyright © 1996 - 2003 Andreas Borchert, in HTML konvertiert am 01.10.2003