The online documentation for wxWindows mentions wxSizer::SetMinSize
which can be used to set the minimum size of a window, but I can't find
anything equivalent in wxPython. Is there such a thing?
It didn't make it into the release. It's in the sources now for the next
one though.
I don't like the way you can by default shrink windows down to tiny
sizes while all their controls scrunch up and begin overlapping each
other. I'd rather set the minimum size to prevent that, although maybe
even better would be for the window to clip below a certain size rather
than drawing things on top of each other.
SetMinSize won't help with this. If an item is resizeable then it will
continue to get crunched as much as necessary by the sizer. SetMinSize and
SetItemMinSize only tells the sizer what the minimum size needed to display
properly is, or it's preferred size.
What you probably want to do is use the SetSizeHints method, passing the
frame the sizer is contained in. This will prevent the frame from being
resized smaller than what the sizer says is its min size.
ยทยทยท
--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!