[wxPython] wxLog_SetActiveTarget

What happens inside this function : wxLog_SetActiveTarget

is there any redirection of sys.stdin and/or sys.stdout - or something more
/ others ?

···

===========================================================
Heinl Raimund SSH - Software Systeme Heinl
gepr.Wirtschaftsinformatiker IHK Am Galling 3
Tel. 09151 / 7 10 99 91217 Hersbruck
Fax. 09151 / 90 50 51
http: coming soon
Email: heinlr@gmx.de

What happens inside this function : wxLog_SetActiveTarget

is there any redirection of sys.stdin and/or sys.stdout - or something

more

/ others ?

No it is pure C++, not Python aware. It simply sets the destination for any
further log messages.

wxLog *wxLog::SetActiveTarget(wxLog *pLogger)
{
    if ( ms_pLogger != NULL ) {
        // flush the old messages before changing because otherwise they
might
        // get lost later if this target is not restored
        ms_pLogger->Flush();
    }

    wxLog *pOldLogger = ms_pLogger;
    ms_pLogger = pLogger;

    return pOldLogger;
}

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!