in reply to Tk: resize

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.

Replies are listed 'Best First'.
Re^2: Tk: resize
by vikee (Sexton) on Jul 27, 2004 at 06:54 UTC
    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.