I am writing an app using pyQt. Basically I am using the pyQt part of the app for user interaction and then use
subprocess.Popen(["pdf.exe","output.pdf"])
to show the file that my program generated. But there is a problem: the pdf.exe is not bound in any way to the main app, so switching focus from the app and back to it wouldn't also bring pdf.exe to the front.
Possible solutions:
1)Bring app to front through some command each time the main one gains focus. (I don't know how.)
2)Use some very clever pyQt thing, that will bundle these two apps together. (I don't know how.)