[wxPython-users] AUIManager docked windows not laying out sizers
properly
Dusty Phillips
buchuki at gmail.com
Tue Aug 14 09:00:36 PDT 2007
Hi Andrea,
> > Am I doing something wrong, missing some property or some such, or is
> > this a bug in the AUIManager? I thought maybe its not calling Layout()
> > on the window when the sash is moved, but its not even correct in the
> > first place.
> >
> > I'm using Ubuntu 7.04, Python 2.5.1, and wxPython version 2.8.1.1.
>
> It doesn't work also on Windows XP, wxPython latest *pre-release*,
> Python 2.5. However, I found that you're using this line of code:
>
> self.dockedMultipane = wx.Window(self, wx.ID_ANY)
>
> If you substitute it with:
>
> self.dockedMultipane = wx.Panel(self, wx.ID_ANY)
>
> The correct layout is displayed. It might be that wx.Window is missing
> some layout method with respect to wx.Panel, although I am not sure at
> all about that... Is there a particular reason why you want to use a
> wx.Window instead of a standard wx.Panel?
Actually, I never knew that the wx.Panel class existed; I thought the
Window base class was also used as a container. And here I thought
that I was becoming quite proficient with wxPython! :-) On the other
hand, I knew it would be something simple like that.
In summary, its all working well now. Thank you for the tip.
Dusty
More information about the wxpython-users
mailing list