I am tryin to set up some checkboxes that when enabled and disabled, will update the values of extra attributes on nodes in my scene.
I’m using the partial method from functools to pass data from the checkbox to my function so i know which attribute to modify and what the new value of the check box is.
however, i’m running into a problem where i can’t seem to retrieve the new value of the checkbox, i always get a value of FALSE.
attrCb = QtGui.QCheckBox(newAttrName)
self.connect(attrCb, QtCore.SIGNAL(‘stateChanged(int)’), partial(myFunctionUpdateNode, newAttrName, attrCb.isChecked()))
how can i run a function when the CheckBox is changed and also retrieve the new value at the same time?
Thanks.