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

Hello, how can I tell a frame, pane or whatever the maximum width?
I don't need a fixed width, only to set the maximum width?

thanks

Replies are listed 'Best First'.
Re: Tk: resize
by eserte (Deacon) on Jul 26, 2004 at 15:42 UTC
    To my knowledge there's no option to set the maximum width of a widget --- it's only possible to set the maximum size for toplevel widgets. But probably it is possible to trap size requests by binding to the <Configure> event and setup a maximum width constraint in the binding callback.
      Thats ok, how can I set the maximum size of the mainwondow?
        As documented in the Tk::Wm pod:

        $mw->maxisze($width,$height)

        There's also a minsize method.