Using treading and subprocess.popen
Dynamic Python binding for Qt Applications
Brought to you by:
florianlink,
marcusbarann
Hi all,
I'm new to PythonQt and to this list. I hope you could help me with my issue. I want to integrate plantuml into my application throught a python plugin. Plantuml is written in Java and the only way of interacting with it is throught subprocess, os.system, etc. It is very slow and the execution of the command hangs the UI. To solve the problem I have coded the following class:
The problem I'm facing is that the line next to Popen is never called. I would like to know when the command has finished but I'm unable. No matter what I put in that line, is never called. Another problem is that the command sometimes fails.
I have tried all the alternatives that I have found. All the variants of subprocess, os.system, etc. Nothing worked.
The function that creates the thread is called throught a slot and it is created like this:
Everything works fine outside of PythonQt so maybe is related to how PythonQt works..
Do you have any idea where is the problem or you know about any alternative to solve the problem?
Thank you very much!
Regards.