Tony Cappellini:
In the example for "Redirecting text from stdout to a wx.TextCtrl" at
the url below,
http://wiki.wxpython.org/LongRunningTasks?highlight=(redirect)
what is the purpose of
sys.__stdout__.write(string)
in the write() method of class SysOutListener ?
If the example is trying to redirect output to stdout, why is
sys.__stdout__.write() still being called?
···
----
I cann't explain why it is used in that application. I can explain
what it is.
__stdout__, __stderr__ are the saved stdout and stdin at start of
an application. See Python doc.
My main usage of this. Sending msgs to "stdout" and "stderr" when debugging
an application in which stdout, stderr are redirected.
Jean-Michel Fauth, Switzerland.