diff --git a/piker/ui/_window.py b/piker/ui/_window.py index c4c3f51084..f5cd2887ef 100644 --- a/piker/ui/_window.py +++ b/piker/ui/_window.py @@ -18,14 +18,13 @@ Qt main window singletons and stuff. """ -import os -import signal +# import os +# import signal import time from typing import Callable, Optional, Union import uuid -from pyqtgraph import QtGui -from PyQt5 import QtCore, QtWidgets +from pyqtgraph import QtGui, QtCore from PyQt5.QtWidgets import QLabel, QStatusBar from ..log import get_logger @@ -179,15 +178,17 @@ def mode_label(self) -> QtGui.QLabel: return self._status_label - def closeEvent( - self, - event: QtGui.QCloseEvent, - ) -> None: - """Cancel the root actor asap. + # def closeEvent( + # self, - """ - # raising KBI seems to get intercepted by by Qt so just use the system. - os.kill(os.getpid(), signal.SIGINT) + # event: QtGui.QCloseEvent, + + # ) -> None: + # '''Cancel the root actor asap. + + # ''' + # # raising KBI seems to get intercepted by by Qt so just use the system. + # os.kill(os.getpid(), signal.SIGINT) @property def status_bar(self) -> QStatusBar: