(self, event)
| 895 | return find_spec("deeplabcut.pose_tracking_pytorch.transformer_reID") is not None |
| 896 | |
| 897 | def closeEvent(self, event): |
| 898 | print("Exiting...") |
| 899 | answer = QtWidgets.QMessageBox.question( |
| 900 | self, |
| 901 | "Quit", |
| 902 | "Are you sure you want to quit?", |
| 903 | QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.Cancel, |
| 904 | QtWidgets.QMessageBox.Cancel, |
| 905 | ) |
| 906 | if answer == QtWidgets.QMessageBox.Yes: |
| 907 | self._closing = True |
| 908 | self.receiver.terminate() |
| 909 | |
| 910 | if self._update_check_timer.isActive(): |
| 911 | self._update_check_timer.stop() |
| 912 | |
| 913 | if self._updater is not None: |
| 914 | self._updater.cancel() |
| 915 | |
| 916 | if self._update_process is not None and self._update_process.state() != QtCore.QProcess.NotRunning: |
| 917 | self._update_process.kill() |
| 918 | self._update_process.waitForFinished(1000) |
| 919 | |
| 920 | self.save_settings() |
| 921 | event.accept() |
| 922 | else: |
| 923 | event.ignore() |
| 924 | print("") |
nothing calls this directly
no test coverage detected