Aaron MacDonald wrote:
I have three panels within one root panel. Two of them have fixed sizes, while one has a fixed width and a (theoretically) variable height. The largest fixed-size panel is on the left hand side of the root panel. On the right hand side is the smaller fixed-size and the variable-height panel stacked on top of each other. The top of the two fixed-sized panels are supposed to match. The variable-height panel is centered horizontally and stretched vertically within its space. This is shown in the attached picture.
The problem is that the variable-height panel is not showing up. This is the code I'm using:
It's there, but with a zero height because the parent sizers are not being expanded to fill the available space. Try this one (attached) instead.
BTW, I suggest using either the widget inspector to help diagnose things like this, or you can do your layout mockup in XRCed and then translate to source if you don't want to use XRC itself. (Sample also attached.)
sizer_test.py (1.8 KB)
sizer_test.xrc (1.57 KB)
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!