From 7390c76b6cab24b49366d190c91d9a3ab49feb67 Mon Sep 17 00:00:00 2001 From: Nils <> Date: Mon, 20 Apr 2020 14:46:45 +0200 Subject: [PATCH] Log to find if the Wait-Thread actually runs --- qtgui/waitdialog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qtgui/waitdialog.py b/qtgui/waitdialog.py index 9dbd172..267a4a1 100644 --- a/qtgui/waitdialog.py +++ b/qtgui/waitdialog.py @@ -37,6 +37,7 @@ class WaitThread(QtCore.QThread): self.wait() def run(self): + logger.info(f"Thread running {self.longRunningFunction}") self.longRunningFunction() @@ -58,7 +59,7 @@ class WaitDialog(QtWidgets.QMessageBox): self.setWindowTitle(title) self.setInformativeText(informativeText) self.setStandardButtons(QtWidgets.QMessageBox.NoButton) #no buttons - + wt = WaitThread(longRunningFunction) wt.finished.connect(self.realClose) wt.start() @@ -67,6 +68,7 @@ class WaitDialog(QtWidgets.QMessageBox): def realClose(self): self.closeEvent = QtWidgets.QMessageBox.closeEvent + logger.info("Thread done") self.done(True) def keyPressEvent(self, event):