470,590 Members | 2,098 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,590 developers. It's quick & easy.

howto redirect stdout/stderr into a wxPython textctrl?

Hi, group,
I guess it is a simple question for you, but it puzzles me for a
I use a wxTextCtrl in my application for output result and any
exception msg. I know I can add new msg onto wxTextCtrl by WriteText()
method. But I have a function imported from another module and in this
function all results are output by "print". I am wondering if I can
redirect stdout and stderr into the wxTextCtrl object, so that all
output from that function will be shown up on wxTextCtrl box and I
don't need modify the current code for that function.

Thank you.
Jul 18 '05 #1
0 2297

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Logan | last post: by
6 posts views Thread by Tsai Li Ming | last post: by
3 posts views Thread by legba | last post: by
1 post views Thread by sillyemperor | last post: by
3 posts views Thread by Alejandro | last post: by
2 posts views Thread by RossGK | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.