Beispiel #1
0
 def _on_z_close(self, close_event: QtGui.QCloseEvent):
     if close_event.spontaneous():
         self._settings.write_z_window_settings(
             self._z_window.q_main_window)
         q_action = self._window.actions.z_mode.q_action
         if q_action.isChecked():
             q_action.trigger()
Beispiel #2
0
    def closeEvent(self, event: QCloseEvent) -> None:

        if event.spontaneous():
            self.close()