Hi @all,

in psep-0104 <http://www.pyside.org/docs/pseps/psep-0104.html> the use of 
the use of the decorator style @Property's is documented like this:

class C(QObject):

    def __init__(self):
        self._x = None

    xChanged = Signal()

    @Property(float, doc="I'm the 'x' property.", notify=xChanged)
    def x(self):
        return self._x

    @x.setter
    def x(self, value):
        self._x = value

But in my tests I can't give the setter and getter the same name (x).
So in this example I had to name the setter eg. _x(self, value) to got
it Working ... got me a while to figure this out! Seems like a bug!?

Markus

_______________________________________________
PySide mailing list
PySide@lists.pyside.org
http://lists.pyside.org/listinfo/pyside

Reply via email to