Retrieving Information From Dictionary
I'm having hard time trying to read my dictionary variable. Python keeps throwing the following error: TypeError: string indices must be integers This is a sample that should give
Solution 1:
I've found the problem, and it was in my signal definition. Dictionary 'self.dict' is being returned via pyqtSignal which was defined like this:
addUser = pyqtSignal(object)
After thorough examination of my code I've figured out that I should change it to:
addUser = pyqtSignal(dict)
and once I did that it was all right. Once again, thanks everyone for their contribution.
Post a Comment for "Retrieving Information From Dictionary"