[pygtk] gui run exe file

Funky Fred funkyfredmale at hotmail.com
Fri Mar 23 12:23:12 WST 2007


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 <zougp at hotmail.com>
>To: <pygtk at daa.com.au>
>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   pygtk at daa.com.au
>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



More information about the pygtk mailing list