Skip to content

Commit

Permalink
Fix trackcvg for recent PyQt versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
YvanFournier committed Nov 6, 2022
1 parent 2864030 commit b52675d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/code_saturne/gui/trackcvg/MainView.py
Expand Up @@ -957,9 +957,9 @@ def slotRefreshTime(self, text):
time = from_qvariant(text, float)
self.timeRefresh = time
if self.timeRefresh != 0.:
self.timer.start(self.timeRefresh * 1000)
self.timer.start(int(self.timeRefresh * 1000))
else:
self.timer.start(1.e8 * 1000)
self.timer.start(int(1.e8 * 1000))


def updateSubplotNumber(self, v):
Expand Down Expand Up @@ -1272,7 +1272,7 @@ def __init__(self,
self.listingVariable = []
self.listFileProbes = {}
self.timer = QTimer()
self.timer.start(self.timeRefresh * 1000)
self.timer.start(int(self.timeRefresh * 1000))

self.ui_initialize()

Expand Down

0 comments on commit b52675d

Please sign in to comment.