[wxPython-users] Bad sizer selection or ?
Robin Dunn
robin at alldunn.com
Mon Feb 11 17:32:24 PST 2008
Tony Cappellini wrote:
> I'm trying to ween myself off of Pythoncard, with wxPython in Action
> at arms reach.
> I would imagine this layout is very basic, but I can't seem to find
> the right sizer and sequence to add the widgets.
> Attached is a small screenshot of what I'm trying to do.
> =
> I've copied an examples from the wx wiki (Logn Running Tasks, I think)
> and tried modifying it to my needs
> and initially decided on a FlexGridSizer, but I'm not sure that is the
> best choice (or, I'm just messing up a good idea) ;-)
Take a look at your desired layout and decompose it into boxes within =
boxes, as in the attached, where each box in the decomposition contains =
either another set of boxes, or a single widget. If you then work from =
the outside-in you can see that first we have two boxes arranged =
vertically (the bluish ones) and within one of those boxes we have three =
arranged horizontally (the pinkish ones) and each of those has a set of =
greenish boxes arranged vertically.
Translating that into sizer-speak, we have:
blue: A vertical box sizer that has items that are a static text and a =
sizer (pink).
pink: A horizontal box sizer that contains three sizers (the greens)
green1: A vertical static box sizer containing the checkbox widgets
green2 and green3: Each is a vertical box sizer containing a static text =
and a combobox widget.
-- =
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boxes.jpg
Type: image/jpeg
Size: 46140 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20080=
211/25432b89/boxes.jpg
More information about the wxpython-users
mailing list