[wxPython] (no subject)

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?

There isn't a sizer for it but you could probably make one.
--
Robin Dunn

I probably can't but I thought I would try. In order
to do this I opened the sizer.py file and looked at how
the wxBoxSizer was made. This class seems to use "sizersc"
for most functions, but I can't find any information about
this anywhere. Where can I find information about this or
is there another (better) way to do this?

I searched for "sizersc" in the wxPython directory but
the only file I found was wx.pyd which seems to be in
som binary format.

Best regards
tf

···

-------------------------------------------------
FREE E-MAIL IN 1 MINUTE!
- your.name@pc.nu - http://www.pc.nu

I probably can't but I thought I would try. In order
to do this I opened the sizer.py file and looked at how
the wxBoxSizer was made. This class seems to use "sizersc"
for most functions, but I can't find any information about
this anywhere. Where can I find information about this or
is there another (better) way to do this?

Most of wxPython is implemented in C++ which is compiled to binary machine
language and put in the *.pyd files, (Python extension modules.) The Python
code in the wxPython/*.py files are simple wrappers around the functions
exposed by the extension modules to make them look like classes again, etc.

On the other hand, the code in wxPython/lib/*.py is pure Python code that
builds on or simplifies the core wxPython in some way. In
wxPython/lib/grids.py you'll find the original implementation of wxGridSizer
and wxFlexGridSizer. They have since been moved to C++ code but I've left
these modules there as an example of how to do sizers in Python.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!