hi folks, may be this is an fool question but, how to implement
properties with interface attributes, for example, this doesn't work:

class SomeObject(object):
    def __init__(self, id):
        self.id = id

class ISomething(Interface):
    id = Str()

class Somthing(Interface):

    _internal = Instance(SomeObject)

    @ISomething.id.getter
    def id(self):
        return self._internal.id

    @ISomething.id.setter
    def id(self, value):
        return self._internal.id = value

    @_internal.default
    def _internal(self):
        return SomeObject(self.id)



-- 
Lic. José M. Rodriguez Bacallao
Centro de Biofisica Medica
-----------------------------------------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.

Recuerda: El arca de Noe fue construida por aficionados, el titanic
por profesionales
-----------------------------------------------------------------
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to