468,321 Members | 1,814 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,321 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
while.
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.
Chunlei
Jul 18 '05 #1
0 2241

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
reply views Thread by NPC403 | last post: by
1 post views Thread by howard w | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.