Suppose I have the following code:
##########################################3
mydict = dict()
mydict.update({'string':QtGui.QCheckBox()}) ## suppose this dic has many
value with some string and QCheckBox Object
#####Then i have itreate it :
for key, val in mydict.items():
setattr(self,"%s" % val,XXX) ###===> this line is the given line
getattr(self,"%s" % val)
############################################33
According to the above code, I fetch a set of object from dict and set them as attribute, But question is , val has value and it's important, and I can't replace any other value with it, What I replace with XXX in setattr ?