dynamically created names / simple problem
Jules Stevenson
lists at js3d.co.uk
Tue Mar 25 10:57:46 EDT 2008
Hello all,
I'm fairly green to python and programming, so please go gently. The
following code
for display in secondary:
self.("so_active_"+display) = wx.CheckBox(self.so_panel, -1,
"checkbox_2")
Errors, because of the apparent nastyness at the beginning. What I'm trying
to do is loop through a list and create uniquely named wx widgets based on
the list values. Obviously the above doesn't work, and is probably naughty -
what's a good approach for achieving this?
Many thanks,
Jules
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080325/068a9bb0/attachment.html>
More information about the Python-list
mailing list