Ejemplo n.º 1
0
 def __del__(self):
     # don't know why this try is necessary, but I get an exception without
     # it
     try:
         self.clear_callbacks()
         BaseObject.__del__(self)
     except:
         pass
Ejemplo n.º 2
0
 def __del__(self):
     # don't know why this try is necessary, but I get an exception without
     # it
     try:
         self.clear_callbacks()
         BaseObject.__del__(self)
     except:
         pass
Ejemplo n.º 3
0
    def __setattr__(self, attr, value):
        BaseObject.__setattr__(self, attr, value)
#        try:
        if attr in self.__callbackDict:
            for callback in self.__callbackDict[attr]:
                callback( value, attr, self)
Ejemplo n.º 4
0
 def __init__(self, *a, **kw):
     BaseObject.__init__(self, *a, **kw)
Ejemplo n.º 5
0
 def __setattr__(self, attr, value):
     BaseObject.__setattr__(self, attr, value)
     #        try:
     if attr in self.__callbackDict:
         for callback in self.__callbackDict[attr]:
             callback(value, attr, self)
Ejemplo n.º 6
0
 def __init__(self, *a, **kw):
     BaseObject.__init__(self, *a, **kw)