QEventLoop has int argument not flopat

This commit is contained in:
2024-02-29 17:01:07 +01:00
parent 0f62863828
commit c0dd0c6038
+2 -2
View File
@@ -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 " +