From c0dd0c6038efa4f34776d1748747f331764541dd Mon Sep 17 00:00:00 2001 From: chrin Date: Thu, 29 Feb 2024 17:01:07 +0100 Subject: [PATCH] QEventLoop has int argument not flopat --- pvwidgets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pvwidgets.py b/pvwidgets.py index 847e9e5..8e8718c 100644 --- a/pvwidgets.py +++ b/pvwidgets.py @@ -1580,7 +1580,7 @@ class CAQTableWidget(QTableWidget): time.sleep(self.set_delay) ##self.standby_value_button.setEnabled(False) #QApplication.sendPostedEvents() - QApplication.processEvents(QEventLoop.AllEvents, 1.0) + QApplication.processEvents(QEventLoop.AllEvents, 1) if status != self.cyca.ICAFE_NORMAL: _mess = ("The following devices reported an error " + @@ -1657,7 +1657,7 @@ class CAQTableWidget(QTableWidget): if status_list[i] != self.cyca.ICAFE_NORMAL: status = status_list[i] time.sleep(self.set_delay) - QApplication.processEvents(QEventLoop.AllEvents, 1.0) + QApplication.processEvents(QEventLoop.AllEvents, 1) if status != self.cyca.ICAFE_NORMAL: _mess = ("The following device(s) reported an error " +