While you've not done an explicit dict() call, by declaring self.widgets = {}, 
you're doing the same thing and creating self.widgets as a dictionary...

More specifically, in your scriptJobs line, you've got parent = 
self.widgets("window"). I suspect you mean parent = self.widgets["window"]  :)




On 16 Dec 2012, at 23:52, Bay wrote:

> Hi, been giving Jeremy Ernst's UI tutorials a try and keep running up against 
> this 'dict' object is not callable error when i attempt to create a scriptjob 
> to change the button color back to its original after deselecting. 
> 
> The command itself is at line 67 and the input code is at line 26.I have not 
> been using a dictionary at all in the process so I haven't been able to find 
> the problem. Would appreciate if anyone with sharper eyes could spot where 
> I've done wrong. 
> 
> Thank you
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Python Programming for Autodesk Maya" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> 
> 
> <UserInterface.py>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].


Reply via email to