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
What am I doing wrong?
I'm trying to capture stdErr in a multi-threaded program.
This code crashes wxPython with
/Py Assertion Error: C++ assertion "m_count=-1 || m_count=-2" failed/
What I'm trying to do is redirect stderr and stdout to a wxPython text
control.
In an ideal world, when the worke