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

 

 

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to