Re: [wxPython-users] Sizers API
by Donnal Walter other posts by this author
Mar 24 2003 9:12PM messages near this date
Re: [wxPython-users] Sizers API
|
Re: [wxPython-users] Sizers API
Patrick K. O'Brien:
> I'm starting to think the entire sizer API is ripe for an
> overhaul. If ever there was a place to deviate from wxWindows,
> surely this is a pretty good one.
>
> Donnal Walter:
> > But the second source of confusion is that if one uses nested
> > windows (panels) and nested sizers to any degree, one ends up
> > with two entirely different containment hierarchies. The way
> > I have handled this is to build sizers into my panels, so that
> > adding a component to the panel automatically adds it to the
> > sizer. No muss, no fuss.
>
> I think this is worth discussing as well. Robin? Any thoughts?
>
While we are tossing things out on the table, how about
wx.StaticBox and wx.StaticBoxSizer? IMHO, these should come for
free: wx.Panel should have a keyword argument (text=None) such that
if a value is given (e.g., text='my title'), the panel should
automatically include the wx.StaticBox and its sizer with an
appropriate sizer nested inside. YMMV
=====
Donnal Walter
Arkansas Children's Hospital
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@[...].org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
Thread:
Patrick K. O'Brien
Chuck Esterbrook
Robin Dunn
Alberto Griggio
Bill Anderson
Patrick K. O'Brien
Donnal Walter
Chris Barker
Patrick K. O'Brien
Donnal Walter
Patrick K. O'Brien
David C. Fox
Patrick K. O'Brien
Robin Dunn
Donnal Walter
Patrick K. O'Brien
|