I got an application (GUI: wxPython).
When I click on a tree item, the application will do something.
But in this time the rest of the application is blocked until the task is done.
It’s ok because the execution runs in the same process.
Now I transfered the execution in a separate process (with multiprocessing module)
I expected that the program is not longer blocked during the task execution.
But it is still blocked. 🙁
def Click(self, event):
# ....
# collect some data and create
# mytask = [.....]
p = Process(target=taskexecution.run, args=(mytask,))
p.run()
Try what happens if you use
p.start()instead.