[wxPython-users] what's up when all sizers freeze?

Eric Ongerth ericongerth at gmail.com
Sat Jun 2 10:23:33 PDT 2007


Thank you, Robin.

Yes, SetSizer() calls, etc., are the first place I searched for the cause.
Strangely, I was not working anywhere near the sizer code when this
happened; I made some minor change or other to a database class, last thing
I remember before the sizer problem hit.  One moment I had a working
GUI/database application and the next it was useless.  But I'm down to the
last-chance theory that a random line or section must have gotten deleted
somewhere, so I've scrutinized all window and sizer-related code closely.

At this point I've taken it as a sign that it's time for a thorough code
review, so I'm rebuilding the entire thing from parent windows downward,
making sure each nesting and each class works properly.  Surely a shake-up
like this is beneficial, on occasion.  I'll make the best of it  :-|


On 6/2/07, Robin Dunn <robin at alldunn.com> wrote:
>
> 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!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200706=
02/35d944fd/attachment.htm


More information about the wxpython-users mailing list