Reading my own stdout

Robert Kern rkern at ucsd.edu
Sun Aug 21 09:09:28 EDT 2005


Miki Tebeka wrote:
> Hello All,
> 
> I have a windows app (wxPython) that uses a C DLL (via SWIG).
> The C DLL emits a lot of information using "printf" and I'd like to catch
> this output and show it in the GUI.
> 
> How can I do this? (OS is winXP).
> 
> (The only option I see now is to do a "-Dprintf=my_log_function"
> which I don't like.)

Look at the py.io module.

http://codespeak.net/py/current/doc/home.html
http://codespeak.net/svn/py/dist/

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter




More information about the Python-list mailing list