in reply to Perl/Tk: Need Assistance with use of pack()
When you say your experiment with grid "hangs", you might be trying to use both pack and grid in the same container. Don't! If this needs to exist within a larger framework, wrap it all in a Frame, and then pack the frame in the mainwindow.use Tk; my $mw = MainWindow->new; my @tags = qw(name version description date); for my $row (0..3) { $mw->Label(-text => $tags[$row])->grid ( -column => 0, -row => $row, -sticky => 'e', ); $mw->Entry()->grid ( -column => 1, -row => $row, -sticky => 'w', ); } MainLoop;
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: •Re: Perl/Tk: Need Assistance with use of pack()
by Anonymous Monk on Apr 25, 2004 at 20:50 UTC |