in reply to Perl/Tk: Need Assistance with use of pack()

This really looks like a grid to me, not a pack. Quickly constructed test:
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;
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.

-- 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
    Good day, sensei...

    As always, it proves there is more than one way to do things, especially in Perl :)

    Yes, I was trying to use grid and pack together on different widgets within the same frame... but I think that was in a more-complex incarnation of my investigations.

    Thanks for your help.

    John