popen4

http://docs.python.org/lib/module-popen2.html

popen4(         cmd[, bufsize[, mode]])
Executes cmd as a sub-process. Returns the file objects (child_stdout_and_stderr, child_stdin). New in version 2.0.

c_stdin,c_stdout = popen4(  "myexe.exe" )

print c_stdoud.read()

I think there may be other ways, but that should do the trick.

-Stu

From: zou guiping <[EMAIL PROTECTED]>
To: <[email protected]>
Subject: [pygtk] gui run exe file
Date: Sun, 18 Mar 2007 03:37:52 -0300

Hi Guys,I want to using python GUI to run an exe file. But I do not know how to run it, who has ideas?Guiping Zou
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us


_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

_________________________________________________________________
ItÂ’s tax season, make sure to follow these few simple tips http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMMartagline

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to