Takamoto has asked for the wisdom of the Perl Monks concerning the following question:
Hello
I have a quite stupid problem with the geometry in Tk. How can I make the content of the second tab 'right' to be left aligned as in tab 'left'? Thanks.
use strict; use warnings; use Tk; use Tk::Notebook; use Tk::Pane; my (@packWidgetTopTitel) = qw/-side top -anchor w -pady 1m/; my (@packWidgetTop) = qw/-side top -anchor w/; my $CkAtSearchUserDatabase; my $CkMergedWindow; my $mw = MainWindow->new(); my $book = $mw->NoteBook(-relief => 'flat')->pack(-side => 'top' , -ex +pand => '1', -fill => "both", -ipadx => 6, -ipady => 6); my $page1 = $book->add( "Sheet1", -label=>'left'); my $page2 = $book->add( "Sheet2", -label=>'right'); #left $page1->Label(-text => "OFF-LINE RESOURCES")->pack(@packWidgetTopT +itel); $page1 -> Checkbutton(-text=>"My old data", -variable=>\$CkAtS +earchUserDatabase)->pack(@packWidgetTop); #right my $PaneT = $page2->Scrolled('Frame', -scrollbars => 'oe', )->pack(-expand => '1', -fill => 'both', -anchor=> 'w'); $PaneT->Label(-text=>"ON-LINE RESOURCES")->pack(@packWidgetTop +Titel); $PaneT -> Checkbutton(-text=>"YXX", -variable=>\$CkMergedWindo +w1)->pack(@packWidgetTop); $PaneT -> Checkbutton(-text=>"XYX", -variable=>\$CkMergedWindo +w2)->pack(@packWidgetTop); $PaneT -> Checkbutton(-text=>"XXY", -variable=>\$CkMergedWindo +3)->pack(@packWidgetTop); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk geometry scrolled frame
by Athanasius (Archbishop) on Mar 30, 2019 at 04:40 UTC | |
|
Re: Tk gemoetry scrolled frame
by Takamoto (Monk) on Mar 30, 2019 at 10:13 UTC | |
by Takamoto (Monk) on Mar 30, 2019 at 12:47 UTC | |
by tybalt89 (Monsignor) on Mar 30, 2019 at 13:25 UTC | |
by Anonymous Monk on Mar 30, 2019 at 17:18 UTC | |
|
Re: Tk gemoetry scrolled frame
by tybalt89 (Monsignor) on Mar 29, 2019 at 23:26 UTC |