Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

preventing my MainWindow from resizing

by chuleto1 (Beadle)
on Aug 09, 2002 at 16:06 UTC ( #188954=perlquestion: print w/replies, xml ) Need Help??

chuleto1 has asked for the wisdom of the Perl Monks concerning the following question:


How do you prevent a Tk MainWindow from being resized?
thank you

Replies are listed 'Best First'.
Re: preventing my MainWindow from resizing
by Rich36 (Chaplain) on Aug 09, 2002 at 16:31 UTC

    In using the "resizable" method, the first value is the x value, the second the y. So you can control whether or not the user can resize horizontally, vertically, or both.

    my $mw = MainWindow->new(-title => "No Resize"); $mw->resizable(0,0);

    If you haven't already, I would highly suggest Mastering Perl/Tk- it's a very informative book and a great reference when build Perl/Tk apps. That's where I got that info from.


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://188954]
Approved by Rex(Wrecks)
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2023-03-27 14:50 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (65 votes). Check out past polls.