B
bg_ie
Hi,
I'm starting a process as follows -
Process process = new Process();
process.StartInfo.UseShellExecute = false;
process.StartInfo.FileName = installValue + "\\Lib\\site-packages\
\pythonwin\\Pythonwin.exe";
process.StartInfo.Arguments = "/run " + script;
process.Start();
process.WaitForExit();
when the user presses a button on my GUI. The problem is that my
program is blocked until python is closed. Instead, I'd like to
disable all buttons in my appilcation until python is closed. That way
my program is not blocked but I can still stop the user changing
settings until python is closed.
Should I create a Process which polls process.WaitForExit() or is
there a better/easier way of doing this?
Thanks,
Barry.
I'm starting a process as follows -
Process process = new Process();
process.StartInfo.UseShellExecute = false;
process.StartInfo.FileName = installValue + "\\Lib\\site-packages\
\pythonwin\\Pythonwin.exe";
process.StartInfo.Arguments = "/run " + script;
process.Start();
process.WaitForExit();
when the user presses a button on my GUI. The problem is that my
program is blocked until python is closed. Instead, I'd like to
disable all buttons in my appilcation until python is closed. That way
my program is not blocked but I can still stop the user changing
settings until python is closed.
Should I create a Process which polls process.WaitForExit() or is
there a better/easier way of doing this?
Thanks,
Barry.