Hi Dusty,
I'm having a little trouble laying out Windows that contain Sizers in
a frame managed by an AUIManager. I'm not certain if this is a bug or
oversight in my code or the sizers themselves. Basically, I've created
a window that contains some other widgets and I want it to expand to
fill available space, but instead, it just stays fixed at a default
size. If I add a single widget, like a text area, it works as
expected.I'm not sure I'm describing it well so I wrote some code to
demonstrate the issue; see below. If you resize the docked windows,
the text areas resize, but not for the docked window containing an
extra button in a sizer.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?
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
ยทยทยท
On 8/13/07, Dusty Phillips wrote: