Esempio n. 1
0
    def closeEvent(self, QCloseEvent):
        """

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

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