From f853d8b5207431de08a3f709d58665d75bbb60ff Mon Sep 17 00:00:00 2001 From: Ogi Moore Date: Fri, 12 Feb 2021 13:25:41 -0800 Subject: [PATCH] Replace float type to QTimer.start() with int --- examples/relativity/relativity.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/examples/relativity/relativity.py b/examples/relativity/relativity.py index 8c70870e..64a67119 100644 --- a/examples/relativity/relativity.py +++ b/examples/relativity/relativity.py @@ -131,7 +131,7 @@ class RelativityGUI(QtGui.QWidget): def setAnimation(self, a): if a: self.lastAnimTime = pg.ptime.time() - self.animTimer.start(self.animDt*1000) + self.animTimer.start(int(self.animDt*1000)) else: self.animTimer.stop() @@ -654,15 +654,6 @@ class Animation(pg.ItemGroup): item = ClockItem(cl) self.addItem(item) self.items[name] = item - - #self.timer = timer - #self.timer.timeout.connect(self.step) - - #def run(self, run): - #if not run: - #self.timer.stop() - #else: - #self.timer.start(self.dt) def restart(self): for cl in self.items.values():