Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: What is the best way to arrange widgets using TK?

by mawe (Hermit)
on Aug 24, 2004 at 04:55 UTC ( [id://385321]=note: print w/replies, xml ) Need Help??


in reply to What is the best way to arrange widgets using TK?

Hi!

You were close, but you forgot -row:

use Tk; my $top = new MainWindow(); my %density = (A=>1,B=>2,C=>3); my $row = 0; foreach (sort keys(%density)) { my $keytext = $top->Label( -height=>1,-width=>10,-text=>$_,-justify=>'left')->grid(-row=> +$row,-column=>0); my $denbox = $top->Entry( -textvariable=>\$density{$_},-width=>5)->grid(-row=>$row,-colu +mn=>1); $row++; } MainLoop();
mawe

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-25 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found