def closeEvent(self, QCloseEvent): """ :param QCloseEvent: :return: """ ctrl.remove_from_watch(self) self._watched = False QtWidgets.QDockWidget.closeEvent(self, QCloseEvent)
def retire_from_drawing(self): """ Announce that this forest should not try to work with scene anymore -- some other forest is occupying the scene now. :return: """ for item in self.get_all_objects(): self.remove_from_scene(item, fade_out=False) ctrl.remove_from_watch(self) self.in_display = False
def hide(self): """ Remove from watchers' list when control point is hidden :return: None """ if self.role == g.LABEL_START: ctrl.remove_from_watch(self)
def hideEvent(self, event): ctrl.remove_from_watch(self) super().hideEvent(event)