My python code runs a function that takes a long time:
Navigation()
During this execution I'd like to have a reset button. For reset button to work, I used threading and I managed to get my code into threaded callback function with the button press. How do I terminate the Navigation()
that is currently running and call another fresh Navigation()
function? thanks.
Thanks in advance.