Run and stop my_function() in thread_1 by pressing buttons in Beeware Toga app running in the main thread
I am trying to find a way to run and stop a function my_function() that should run continuously in thread_1 by pressing buttons in my Beeware Toga app that runs in the main thread with several buttons. The main issue is that when the my_function() is running it blocks the Toga GUI and cannot be stopped. I could not find a way to do it, and I run out of ideas. Any suggestion or hint would be much appreciated
source https://stackoverflow.com/questions/77210346/run-and-stop-my-function-in-thread-1-by-pressing-buttons-in-beeware-toga-app-r
Comments
Post a Comment