setattr() / getattr() will solve your problem.
Cheers,
–Tim
···
On Tue, Apr 1, 2008 at 9:34 PM, Mark Erbaugh mark@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