replacments for stdio?
Martin Miller
ggrp1.20.martineau at dfgh.net
Wed Oct 5 17:43:02 EDT 2005
Ido,
I tried Bryan Olson's code [on Windows] from his last post to the
"Catching stderr output from graphical apps" thread <see
http://groups.google.com/group/comp.lang.python/msg/d61f1d5e02d84178>,
and it seemed to work for stdout as well as stderr output.
To enable its use with stdout, all I had to do was un-comment the last
line in Bryan's post, namely
> # sys.stdout = ErrorPipe()
and the any stdout output starting would appear in a separate window.
Since it's based on Tkinter, and from what Bryan said in his post, I
believe it's a fairly portable solution. [Nice work, Bryan!]
Best,
-Martin
Ido.Yehieli at gmail.com wrote:
> Thanks martin,
> I'll give it a shot as soon as i get back from work!
More information about the Python-list
mailing list