mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-02 10:52:03 +02:00
[common] Core: add destroyed signal to CoreObject
This commit is contained in:
parent
9316b8212e
commit
6eeea3bb44
1 changed files with 5 additions and 0 deletions
|
@ -121,9 +121,14 @@ class CoreObject(object):
|
|||
super(CoreObject, self).__init__()
|
||||
self._parent = parent
|
||||
|
||||
def __del__(self):
|
||||
self.destroyed.emit()
|
||||
|
||||
def parent(self):
|
||||
return self._parent
|
||||
|
||||
destroyed = PySignal.ClassSignal()
|
||||
|
||||
|
||||
DictModel = CoreDictModel
|
||||
ListModel = CoreListModel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue