|< 1 2 3 >| | 24 Einträge, 3 Seiten |
1
2
$label->pack(-side => 'left',-anchor => 'w');
$entry->pack(-side => 'left',-anchor => 'w');
1
2
3
$widget1->grid(-column => 0, -row => 0, -rowspan => 2);
$widget2->grid(-column => 1, -row => 0);
$widget3->grid(-column => 1, -row => 1);
$widget1->grid('-', $widget2);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl -w
use strict;
use warnings;
use Tk;
my $mw = MainWindow->new;
my @frames;
$frames[$_] = $mw->Frame( -borderwidth => 2, -relief => 'groove' ) for (0..4);
$frames[0]->grid( -column => 0, -row => 0, -columnspan => 2, -sticky => 'nsew' );
$frames[1]->grid( -column => 0, -row => 1, -rowspan => 2, -sticky => 'ns' );
$frames[2]->grid( -column => 1, -row => 1 );
$frames[3]->grid( -column => 1, -row => 2 );
$_->Label( -text => 'Frame' )->pack() for( @frames );
MainLoop();
1
2
3
4
5
6
...
my $frame1 = $mw->Frame()->pack(-side => 'top');
my $frame2 = $mw->Frame()->pack(-side => 'left');
my $f_tmp = $mw->Frame()->pack(-side => 'left');
my $frame3 = $f_tmp->Frame()->pack(-side => 'top');
my $frame4 = $f_tmp->Frame()->pack(-side => 'top');
|< 1 2 3 >| | 24 Einträge, 3 Seiten |