Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make something like a log box in wxPython

I'm assuming this is possible with a multiline text box, but not sure how to do it. What I'm looking to do is make a log box in my wxPython program, where I can write messages to it when certain actions happen. Also, i need to write the messages not only when an event happens, but certain times in the code. How would i get it to redraw the window so the messages appear at that instant?

like image 251
ULcajun Avatar asked Mar 31 '11 00:03

ULcajun


1 Answers

I wrote an article on this sort of thing a couple years ago:

http://www.blog.pythonlibrary.org/2009/01/01/wxpython-redirecting-stdout-stderr/

like image 99
Mike Driscoll Avatar answered Sep 20 '22 02:09

Mike Driscoll