Python Multiprocessing Module, Windows, Spawn New Console Window With The Creation Of A New Process
Solution 1:
If you're going to spawn a new console window, then you're starting a new Windows console process as well as the new python process running inside it.
So the short (and unhelpful) answer would be that multiprocessing won't do this as it only spawns python processes.
However, I can see two ways around this;
You use
multiprocessingand each process creates aTkinterwindow displaying the text you desire. This question has an example for sendingloggingoutput to aTkinterwindow. I'm suggestingTkinteras it already comes with python, you could usePyQt,wxWidgetsetc.You use
subprocessto spawn an entirely separate and new python process (or console window + process). Note that you won't be able to.join()or share thread states easily this way. This question has an example of how to create a new python thread and window.
Post a Comment for "Python Multiprocessing Module, Windows, Spawn New Console Window With The Creation Of A New Process"