Alignment of labels in table
- From: Peter Daum <gator_ml yahoo de>
- To: gtk-perl-list gnome org
- Subject: Alignment of labels in table
- Date: Sun, 13 Nov 2005 19:31:58 +0100
Hi,
I am trying to create a (table-based) form with left-aligned labels.
In the Example below, the text in the left column is always centered,
no matter what I do with "set_alignment" or "set_justify".
What am I missing?
Regards,
Peter Daum
my $window = new Gtk2::Window( "toplevel" );
my $t=new Gtk2::Table(2,2,0);
$window->add($t);
my $l1=Gtk2::Label->new('a');
my $l2=Gtk2::Label->new('bla blasdf');
my $l3=Gtk2::Label->new('Zsdf bla sdflks');
my $l4=Gtk2::Label->new('bla');
$t->attach($l1,0,1,0,1,'shrink','shrink',10,10);
$t->attach($l2,1,2,0,1,['expand','fill'],'expand',10,10);
$t->attach($l3,0,1,1,2,'shrink','shrink',10,10);
$t->attach($l4,1,2,1,2,['expand','fill'],'expand',10,10);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]