[PyQt] QGraphicsObject / assignProperty

Philippe Crave philippe.crave at gmail.com
Fri Apr 9 21:44:05 BST 2010


in a QGraphicsObject, I use a StateMachine.
I have problem using assignProperty.
I am sure to enter that State, but, it does not change my Class property.

this how I assign the property
    self.state_in.assignProperty(self, "alpha", 0)

and here is how I define the property in the Class
    def get_alpha(self):
        print 'get'
        return self._alpha
    def set_alpha(self, v):
        print 'set'
        self._alpha = v
    alpha=property(get_alpha, set_alpha)

What am I doing wrong ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100409/6195047d/attachment.html>

More information about the PyQt mailing list