Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Perl/TK: How to set the width and height of the main window?

by strat (Canon)
on Jul 05, 2007 at 09:33 UTC ( [id://625025]=note: print w/replies, xml ) Need Help??


in reply to Perl/TK: How to set the width and height of the main window?

Well, you can set it that way:

my $MW = MainWindow->new( -height => 600, -width => 600 );

or

my $MW = MainWindow->new; $MW->geometry( "600x600" );

but if you arrange items that don't fit into that size, your window will enlarge

in perldoc Tk::Wm the methods ->maxsize and ->minsize could be interesting for you

Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-25 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found