Esempio n. 1
0
    def addStage(self, stage: Stage) -> None:
        """Add a stage if it's not already added.

        :param stage: The stage to be added
        """

        name = stage.getId()
        if name not in self._stages:
            self._stages[name] = stage
            self.stagesChanged.emit()
Esempio n. 2
0
 def addStage(self, stage: Stage) -> None:
     name = stage.getId()
     if name not in self._stages:
         self._stages[name] = stage
         self.stagesChanged.emit()