Nov-25-2019, 01:59 AM
You should use a timer that doesn't lock the process.
Sleep does this until complete.
Here's a timer class that I wrote some time ago, by looking at the code you should be able to get some ideas on how to write interruptible timer routines: https://python-forum.io/Thread-Multi-thr...imer-Class
Also, a good read is: https://pymotw.com/3/time/
Sleep does this until complete.
Here's a timer class that I wrote some time ago, by looking at the code you should be able to get some ideas on how to write interruptible timer routines: https://python-forum.io/Thread-Multi-thr...imer-Class
Also, a good read is: https://pymotw.com/3/time/