in reply to Arranging Frames in TK
If you'd like to do more than this, you can pack frames to one of the sides of the window. This is achieved as follows:
Here, side can take the values top, bottom, left or right, packing the frames to the respective side of the window. The default is 'top'.my $mw = new MainWindow; my $frame = $mw->Frame(); # do something with the frame $frame->pack(-side => 'left');
Moving up a step, you can change the order that frames are packed in using the $frame->pack(-after => $otherframe); syntax. after may be replaced with before to have the opposite effect.
A multitude of other functionality for pack is available, without even mentioning the other layout managers. If you're likely to be using Tk a lot, I'd advise you get youself a good book on the subject (I'd recommend Learning Perl/Tk from O'Reilly).
Hope that helps a little.
-- Foxcub
#include www.liquidfusion.org.uk
Update: Typo correction (thanks herveus)
|
|---|