How to make an object
-
Dear all,
I have a dictionary with :
{'text': <PyQt4.QtGui.QCheckBox object at 0x9d5d8e4>} , text is text of QCheckbox and value of dict is object of them,My Question is , How i create an instance from my dict? such as :
@self.myinstance@And when i want to create instance with the following code:
@ for key, val in self.projectsInstance.addOnFieldsInstance.items():
instance = getattr(self,"%s" % val)
@
I got :
@ instance = getattr(self,"%s" % val)
AttributeError: 'Ui_ProjectsFind' object has no attribute '<PyQt4.QtGui.QCheckBox object at 0x994ac8c>'
@