ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> wxPython-users
wxPython-users
Re: [wxPython-users] Sizers API
by Patrick K. O'Brien other posts by this author
Mar 24 2003 9:22PM messages near this date
Re: [wxPython-users] Sizers API | [wxPython-users] Making wxTreeListCtrl visible from Python
Donnal Walter <donnalcwalter@[...].com>  writes:

>  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

We could probably implement a StaticPanel that does what you suggest
and make it part of wxPython/lib.

In fact, we could put all of these sizer suggestions into wxPython/lib
and leave the existing sizers compatible with wxWindows for those
folks who want/need compatible versions.  (Though there is something
to be said for having only one way to do sizers in wxPython, so I'm
only +0 on that last suggestion.)

-- 
Patrick K. O'Brien
Orbtech      http://www.orbtech.com/web/pobrien
-----------------------------------------------
"Your source for Python programming expertise."
-----------------------------------------------

---------------------------------------------------------------------
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved