Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 ( #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"


Comment on Re: Perl/TK: How to set the width and height of the main window?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2014-08-30 01:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls