Thanks very much. That clarifies things quite a bit.
Now if I can figure out BoaConstructor, I'll be off and
running!
--vicki
See
http://wiki.wxpython.org/index.cgi/UsingSizers
and the included link to the wxDesigner tutorial.
Briefly, the second parameter, proportion, (but called
option in later
versions and possibly still in wxPython) is a weight
which determines
how the different controls you add to the sizer share
the available size
in the main direction of the box sizer (i.e. vertical
for wxVERTICAL).
If the proportion for a given control is 0, then that
item will use the
default size for that control (so, for a button,
enough
to hold the
text). Otherwise, all controls with non-zero
proportion share the
remaining space in proportion to their proportion
values (i.e. two
controls with proportion 1 will get equal space, one
with proportion 2
will get twice as much space, etc.).The third parameter, flag, has two functions (which is
a confusing
design). First, it determines how the controls in the
sizer grow in the
perpendicular direction. The choices are 0 (doesn't
grow), wxGROW or
wxEXPAND (grow to fill the space), and wxSHAPED (grow
to preserve the
original aspect ratio of the control as it resizes in
the main
direction). Second, it determines how the control is
aligned within the
available space both vertically and horizontally
(wxALIGN_CENTER,
wxALIGN_TOP, etc.). You make a choice for
perpendicular growth and a
choice for alignment and combine the two choices with
a
···
bitwise or (e.g.
wxGROW | wxALIGN_CENTER).The fourth parameter determines how large a border the
sizer leaves
around a control (in pixels).David
---------------------------------------------------------------------
To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwindows.org