Example #1
0
    def closeEvent(self, QCloseEvent):
        """

        :param QCloseEvent:
        :return:
        """
        ctrl.remove_from_watch(self)
        self._watched = False
        QtWidgets.QDockWidget.closeEvent(self, QCloseEvent)
Example #2
0
    def closeEvent(self, QCloseEvent):
        """

        :param QCloseEvent:
        :return:
        """
        ctrl.remove_from_watch(self)
        self._watched = False
        QtWidgets.QDockWidget.closeEvent(self, QCloseEvent)
Example #3
0
 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
Example #4
0
 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
Example #5
0
 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)
Example #6
0
 def hideEvent(self, event):
     ctrl.remove_from_watch(self)
     super().hideEvent(event)
Example #7
0
 def hideEvent(self, event):
     ctrl.remove_from_watch(self)
     super().hideEvent(event)
Example #8
0
 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)