[wxPython-mac] problem with wxpython not error output

Kevin Ollivier kevino at theolliviers.com
Tue Sep 18 11:42:58 PDT 2007


Hi Robin,

On Sep 18, 2007, at 11:40 AM, Robin Dunn wrote:

> Kevin Ollivier wrote:
>> Hi Robin,
>> On Sep 18, 2007, at 10:57 AM, Robin Dunn wrote:
>>> Christopher Barker wrote:
>>>> Robin Dunn wrote:
>>>>>> but i can't see error messages ..
>>>>> You can change the redirection behavior by how you instantiate  
>>>>> the app object:
>>>> This is such a common issue that I have to think it's be better  
>>>> to change the default in the wx.App() constructor to False.
>>>
>>> Yep, that's the plan for 2.9.
>> BTW, any reason we can't have a wx.App method to change it, say  
>> calling it from OnInit, where we know the GUI capabilities will  
>> already be set up?
>
> There already are methods for it.  app.RedirectStdio(filename=None)  
> and app.RestoreStdio()

Oops! <wipes egg off face> Well, I think in future code we should  
recommend using that approach. :-)

Thanks,

Kevin

>
> -- 
> Robin Dunn
> Software Craftsman
> http://wxPython.org  Java give you jitters?  Relax with wxPython!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-mac-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-mac-help at lists.wxwidgets.org
>





More information about the wxpython-mac mailing list