Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Tk::pack help

by sleepingsquirrel (Chaplain)
on Aug 03, 2004 at 20:36 UTC ( [id://379818]=note: print w/replies, xml ) Need Help??


in reply to Re: Tk::pack help
in thread Tk::pack help

Maybe closer to your needs...
#!/usr/bin/perl -w use strict; use Tk; my $mw = MainWindow->new; for (["A","B"],["C","D"],["E","F"],["G","H"]) { my $frame = $mw->Frame()->pack(-side => "top"); $frame->Button(-text => "$_->[0]",)->pack(-side => "left"); $frame->Button(-text => "$_->[1]",)->pack(-side => "left"); } MainLoop;


-- All code is 100% tested and functional unless otherwise noted.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://379818]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-25 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found