<pre>Hi,<br><br>in a QGraphicsObject, I use a StateMachine.<br>I have problem using assignProperty.<br>I am sure to enter that State, but, it does not change my Class property.<br><br>this how I assign the property<br> self.state_in.assignProperty(self, "alpha", 0)<br>
<br>and here is how I define the property in the Class<br> def get_alpha(self):<br> print 'get'<br> return self._alpha<br> def set_alpha(self, v):<br> print 'set'<br> self.setOpacity(v)<br>
self._alpha = v<br> alpha=property(get_alpha, set_alpha)<br><br>What am I doing wrong ?<br></pre>