[wxpython-users] wx.Frame
Tim van der Leeuw
tnleeuw at gmail.com
Tue Apr 1 13:42:38 PDT 2008
On Tue, Apr 1, 2008 at 9:34 PM, Mark Erbaugh <mark at microenh.com> wrote:
> On Tue, 2008-04-01 at 15:07 -0400, Mark Erbaugh wrote:
>
> > I ended up 'solving' this by passing the frame data member name as a
> > string and indexing into the frame's __dict__ member, but this seems
> > like I am 'cheating'. I think my problem is that I consider double
> > underscore data members as reserved for system use.
>
> Update:
>
> To avoid using the __dict__ Frame member, I added a dict, 'panels' to
> the frame, initializing it to {}. Instead of storing the created panels
> in __dict__, I now store them in panels.
>
> Mark
>
setattr() / getattr() will solve your problem.
Cheers,
--Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200804=
01/02eda7df/attachment.htm
More information about the wxpython-users
mailing list