mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 16:28:51 +02:00
[core] implement uid computation for ListAttributes and GroupAttributes
This commit is contained in:
parent
f1fdd34b6c
commit
46f6865a25
2 changed files with 23 additions and 7 deletions
|
@ -61,6 +61,9 @@ class CoreListModel:
|
|||
def __iter__(self):
|
||||
return self._objects.__iter__()
|
||||
|
||||
def __len__(self):
|
||||
return len(self._objects)
|
||||
|
||||
def at(self, idx):
|
||||
return self._objects[idx]
|
||||
|
||||
|
@ -79,6 +82,9 @@ class CoreListModel:
|
|||
def remove(self, obj):
|
||||
self._objects.remove(obj)
|
||||
|
||||
def clear(self):
|
||||
self._objects = []
|
||||
|
||||
|
||||
class CoreSignal:
|
||||
""" Simple signal/callback implementation """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue