diff --git a/bcipy/gui/alert.py b/bcipy/gui/alert.py index 8d052685..91fec4c9 100644 --- a/bcipy/gui/alert.py +++ b/bcipy/gui/alert.py @@ -23,5 +23,5 @@ def confirm(message: str) -> bool: message_response=AlertMessageResponse.OCE) button = dialog.exec() result = bool(button == AlertResponse.OK.value) - QApplication.instance().quit() + app.quit() return result diff --git a/bcipy/gui/bciui.py b/bcipy/gui/bciui.py index 5099ce9b..b3c30183 100644 --- a/bcipy/gui/bciui.py +++ b/bcipy/gui/bciui.py @@ -235,4 +235,4 @@ def run_bciui(ui: Type[BCIUI], *args, **kwargs): app = QApplication(sys.argv) ui_instance = ui(*args, **kwargs) ui_instance.display() - app.exec() + return app.exec()