Mathias Lorente wrote:
I'm currently launching some external apps from my GUI using wx.Execute.
This works fine but my external application consumes so much CPU time that the GUI is no more responsive!
So I'd like to launch it with a lower priority...
As a very general rule, you should avoid wx functions that duplicate features that are adequately handled in Python directly. The "subprocess" module in the standard library is a better platform than wx.Execute.
···
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Hello Tim,
As my application can take some minutes to achieve its goal, I currently allow the user to stop it. So I use "wx.Process.Kill" method to terminate it.
I didn't find a simple and portable way to do the same thing with "subprocess" (or I've missed something).
Do you have any hint ?
Thanks for your help,
Mathias
Tim Roberts wrote:
···
Mathias Lorente wrote:
I'm currently launching some external apps from my GUI using wx.Execute.
This works fine but my external application consumes so much CPU time that the GUI is no more responsive!
So I'd like to launch it with a lower priority...
As a very general rule, you should avoid wx functions that duplicate features that are adequately handled in Python directly. The "subprocess" module in the standard library is a better platform than wx.Execute.