wxPython2.1 (activestate), win98
Hello, I have been trying to understand sizers
and make them do what I want (which things rarely
do, but I just cant stop trying).
This is the first time I use wxPython. I made a
program that opened a dialog and added two panels
and a boxsizer, then boxsizer.SetAutoLayout(true).
My hope was that the boxsizer then would place the
panels next to each other which of course did not
happen, it placed them on top of each other. (It
does place them correctly if the window is resized.)
This was solved with a call to dialog.sizer.Layout().
The question is, shouldn't the SetAutoLayout(true)
have done this in the first place?
For my next project I am looking for a sizer
that can layout an arbitrary number of panels
(of type static text + control) in the following
manner, where px designates different panels
p1 p2 p3 | | p1 p2 p3 p4
p4 p5 | resize | p5 p6
p6 p7 | window | p7 p8 p9
p8 p9 | |
so that panels are placed as many as can fit on
the first row and then starting on the next row,
not in fixed columnwidths and not with a fixed
number of columns, but where there is space
enugh for the control. Does anyone know if there
is such a sizer or if there is another way in
which to accomplish this layout?
Best regards
tf
···
-------------------------------------------------
FREE E-MAIL IN 1 MINUTE!
- your.name@pc.nu - http://www.pc.nu