bekrause 0 Posted March 27, 2022 Hello, is there a way to cancel a script execution started with executestring? Thx Benno Share this post Link to post
pyscripter 689 Posted March 29, 2022 Study demo 33 on how to interrupt a running python thread. (TSortThread.Stop). Share this post Link to post
xpert13 0 Posted May 18, 2023 Is there any way to immediately terminate script it waiting for timer.sleep Code from demo 33 doesn't help in this situation. The same issue if script is waiting for answer for http request. Share this post Link to post
xpert13 0 Posted May 20, 2023 Is any way to use Py_Exit to terminate python engine but not our program? Share this post Link to post
pyscripter 689 Posted May 20, 2023 On 5/18/2023 at 8:05 PM, xpert13 said: Is there any way to immediately terminate script it waiting for timer.sleep Code from demo 33 doesn't help in this situation. The same issue if script is waiting for answer for http request. See multithreading - Python threading interrupt sleep - Stack Overflow for alternatives to sleep that can be interrupted. Share this post Link to post