mld has asked for the wisdom of the Perl Monks concerning the following question:
I have defined a main window with Lable,Entry Text Box and Command Button.
Below is the code I have written:
my $input='Enter the site address..';
my $mw = new MainWindow;
my $label =$mw -> Label(-text=>"Site Address") -> pack(-pady=>5,-side=>'left');
my $text =$mw ->Entry(-width=>100,-textvariable=>\$input,-state=>"normal")->pack(-padx=>15,-side=>'right');
my $button = $mw -> Button(-text => "Quit",
-command => sub { exit })-> pack(-anchor=>'center',-pady=>30,-padx=>100);
MainLoop;
On execution of above code the command button is placed inbetween Lable and entry field.I want to place the command button below the label and entry field.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Specifying the Position of widget
by zentara (Cardinal) on Mar 30, 2009 at 11:32 UTC | |
|
Re: Specifying the Position of widget
by Marshall (Canon) on Mar 30, 2009 at 18:15 UTC | |
by GrandFather (Saint) on Mar 30, 2009 at 22:06 UTC | |
by Marshall (Canon) on Mar 31, 2009 at 00:43 UTC |