Replace float type to QTimer.start() with int
This commit is contained in:
parent
fc550aab86
commit
f853d8b520
@ -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()
|
||||
|
||||
@ -655,15 +655,6 @@ class Animation(pg.ItemGroup):
|
||||
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():
|
||||
cl.reset()
|
||||
|
Loading…
Reference in New Issue
Block a user