in reply to A question regarding Perl::Tk, pack
#!/usr/bin/perl -- use strict; use warnings; use Tk qw/ tkinit /; my $mw = Tk::MainWindow->new; my $top = $mw->Frame(qw'-bg red' )->pack(qw/ -expand 1 -fill b +oth -side top /); my $bottom = $mw->Frame(qw'-bg blue' )->pack(qw/ -expand 1 -fill +both -side bottom /); my $topleft = $top->Pane(qw'-bg pink' )->pack(qw/ -expand 1 -fill +both -side left /); my $topright = $top->Pane(qw'-bg purple' )->pack(qw/ -expand 1 -fil +l both -side right /); my $botleft = $bottom->Pane(qw'-bg green' )->pack(qw/ -expand 1 -f +ill both -side left /); my $botright = $bottom->Pane(qw'-bg orange' )->pack(qw/ -expand 1 - +fill both -side right /); $mw->MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A question regarding Perl::Tk, pack (four panels four square)
by Shumkar (Novice) on Mar 30, 2016 at 06:30 UTC | |
by beech (Parson) on Mar 30, 2016 at 07:53 UTC | |
by Shumkar (Novice) on Mar 30, 2016 at 08:25 UTC |