Example #1
0
    def __init__(self, *args):
        l = len(args)
        if l >= 4:
            doc = args[3]
        else:
            doc = None

        if l < 2:
            args += (None, None)
        fget, fset = args[:2]

        self.__getval = fget
        if fget:
            fget = self._get

        self.__setval = fset
        if fset:
            fset = self._set

        property.__init__(self, fget, fset, None, doc)
        Observable.__init__(self)
Example #2
0
 def __init__(self, *args):
     BoundProperty.__init__(self, *args)
     Observable.__init__(self)