class Obj(autoqt.AutoObject): signal = self.sig() i = autoqt.AutoProp(int, 'signal', '_i', write=True) s = autoqt.AutoProp(str, 'signal', '_s', write=True) def __init__(self, parent=None): super().__init__(parent) self._i = 10 self._s = 'stuff'
class Obj(autoqt.AutoObject): signal = self.sig() s = autoqt.AutoProp(str, 'signal') @s.write def s(self, value): self._s = value
class Obj(autoqt.AutoObject): signal = self.sig() s = autoqt.AutoProp(str, 'signal') @s.getter def s(self): return 'things'
class Obj(autoqt.AutoObject): signal = self.sig() s = autoqt.AutoProp(str, 'signal') @s.read def s(self): return 'stuff'
class Obj(autoqt.AutoObject): signal = self.sig() s = autoqt.AutoProp(str, 'signal', fset=m)