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

Hello

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.


    «Rich36»