[wxPython-users] connect an application with a wx GUI
Werner F. Bruhin
werner.bruhin at free.fr
Tue Aug 7 07:46:46 PDT 2007
Hi Radu,
Radu Ciora wrote:
> I also tried to redirect the printing as in the example in wxPython In
> Action like this:
> app = MyApp(redirect=True)
> but instead of printing in my window it prints to the another window
> called "wxPython: stdout/stderr"
>
> Is possible to redirect to my window?
You can redirect it to a file, see doc:
__init__(self, redirect, filename, useBestVisual, clearSigInt)
Construct a wx.App object.
You can then get that file and show it e.g. in a textctrl, see also:
http://wiki.wxpython.org/CustomExceptionHandling
Werner
More information about the wxpython-users
mailing list