(Jan-22-2021, 12:31 PM)deanhystad Wrote: This sounds like a bad idea. What are you trying to achieve?
Why is that a bad idea? I simply need to be able to stop an operation whilst is running. I am developing a system simmilar to pick to light where user scans a barcode and then the sequence of LED's will turn ON indicating what items to pick. The program is designed in a recursive to make use of a tkinter mainloop and after method, it also ensures that the user completes the operation before starting a new one. However, if there is something wrong happening, I must be able to have a way to restart a task to its initial state which may not happen often but I still require to have contorl over that. I dont want to restart the whole tkitner script everytime? Surely there should be a simple way how to achieve that