More wxPython Linux -> Windows (sizers?)

The layout does fix itself when the window is resized. However, adding a
call to Layout() didn't fix things, but I do think I fixed it. There is
a wx.Panel that takes up the entire frame. Within that panel are sizers
and sub-panels. However, there was no sizer to manage this top panel
within the frame. When I added that sizer, things work fine.

It's interesting, I had a similar problem on other frames in the same
application, and they didn't display correctly under Linux until I added
the sizer. I didn't know that I hadn't added the sizer that to this
frame (actually a wx.Dialog) because it displays okay under Linux.

Thanks,
Mark

ยทยทยท

On Thu, 2008-02-28 at 12:48 -0800, Robin Dunn wrote:

Mark Erbaugh wrote:
> I have a wxPython app that I developed under Ubuntu Dapper and Python
> 2.4.3 / wxPython 2.8.7.1. When I run it under Windows 2000 or Windows
> XP with Python 2.4.1 and wxPython 2.8.7.1, at least one of my frames
> that looks fine under Linux is messed up under Windows.
>
> While the frame border looks to be the right size, all the frame content
> is crammed into a tiny (may 16 by 16 pixels) square at the top left of
> the frame. I'm guessing it is a sizer / panel / parent issue. Is there
> something different about the way sizers work under Windows? The frame
> does have a couple of nested panels and sizers.

Does the layout fix it self if you resize the window manually? If so
then adding a Layout() call after all the child widgets and sizers have
been created will probably take care of it.