ianaré wrote: > like this: > > > list = ["Replace", "ChangeCase", "Move"] > textVariable = list[n] > self.operations.insert(pos, operations.[textVariable].Panel(self, > main)) > > Is something sort of like that possible?
Yes: self.operations.insert( pos, getattr(operations, textVariable).Panel(self.main) ) -- http://mail.python.org/mailman/listinfo/python-list