def setToolbox(self, toolbox: Toolbox) -> None: """Set a new Toolbox. We are only interested in changes of the input data. """ if toolbox is not None: print("FacePanel: " "new toolbox contains the following face detectors:") detector = None for index, detector in \ enumerate(toolbox.tools_of_type(FaceDetector)): print(f" - {detector.key}") if index < len(self._detectorViews): self._detectorViews[index].setFaceDetector(detector) self._dataInspector.setToolbox(toolbox) # self._dataView.setToolbox(toolbox) self.setData(toolbox.input_data if toolbox is not None else None)