Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 chanting in the Monastery: (7)
As of 2015-07-31 03:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls