class RedirectText:
def __init__(self,aWxTextCtrl):
self.out=aWxTextCtrl
def write(self,string):
wx.CallAfter(self.out.WriteText,string) #CallAfter
def flush(self):
pass
[david]
[david] wrote:
> What am I doing wrong?
> I'm trying to capture std
On 8/20/07, [david] <[EMAIL PROTECTED]> wrote:
>
> What am I doing wrong?
> I'm trying to capture stdErr in a multi-threaded program.
You can't reliably access the GUI anywhere except in the main thread; you're
printing to stderr from the worker thread, and thus its writing to the GUI
control, an