This commit is contained in:
Jonas Zeunert
2021-03-07 15:47:45 +01:00
parent c54ab2e311
commit 6450ee22dc
10 changed files with 277 additions and 29 deletions

7
utils/RepeatTimer.py Normal file
View File

@@ -0,0 +1,7 @@
from threading import Timer
class RepeatTimer(Timer):
def run(self):
while not self.finished.wait(self.interval):
self.function(*self.args, **self.kwargs)