[wxPython-users] what's up when all sizers freeze?
Robin Dunn
robin at alldunn.com
Sat Jun 2 09:34:55 PDT 2007
Eric Ongerth wrote:
> Ever had all of your wxPython sizers just quit working? Like, you open
> your app, and try to click and drag the corner to test whether your
> nested sizers are all getting along, and nothing resizes itself? The
> frame itself resizes but none of the panels and their subpanels seem to
> be receiving any signals.
>
> Does this sound familiar? It seemed to come out of nowhere. I logged
> out, rebooted, situation persists.
Make sure that you are actually doing the window.SetSizer(sizer) calls.
All the sizer setup in the world won't do any good if you don't tell
the window to use it. Also make sure that the proportion and wx.EXPAND
flags are set appropriately for all the items that need to stretch.
This includes the nested sizers if they contain the stretchable widgets,
the sizer also needs to be stretchable in it's parent if the widget is
going to stretch.
If these ideas don't help then make a small runnable sample of your
layout and send it here. http://wiki.wxpython.org/MakingSampleApps
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list