Пример #1
0
 def setActive(self, component, entryID, active):
     with suppress(KeyError):
         self._entries[entryID].active = active
         self.on_update()
Пример #2
0
 def setMatrix(self, component, entryID, matrix):
     with suppress(KeyError):
         self._entries[entryID].set_matrix(matrix)
         self.on_update()
Пример #3
0
 def invoke(self, component, entryID, *signature):
     with suppress(KeyError):
         self._entries[entryID].invoke(*signature)
         self.on_update()
Пример #4
0
 def move(self, component, entryID, container):
     with suppress(KeyError):
         self._entries[entryID].container = container
         self.on_update()
Пример #5
0
 def delEntry(self, component, entryID):
     with suppress(KeyError):
         del self._entries[entryID]
         self.on_update()