Thread Anordnung Label und Entry (23 answers)
Opened by Gast at 2005-11-19 13:23

Arkhen2
 2005-11-22 17:07
#45014 #45014
User since
2005-03-11
25 Artikel
BenutzerIn
[default_avatar]
Mit -columnspan und -rowspan

Code: (dl )
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();

View full thread Anordnung Label und Entry