Hi,
I've got a dynamically populated wxNoteBook (which I have no problems
with) and in each of these pages there is a button to spawn a certain
process using something like this:
from threading import Thread
class run_it(Thread):
def __init__(self,name,params):
Thread.__init__(self)
self.name = name
self.params = params
self.should_run = True
def run(self):
result = []
if self.should_run:
start_runner(self.name,self.params)
return result
def stopper(self):
self.should_run = False
def start_runner(name,params):
print "starting"
#things will be done here and there will be alot of print
statements
Now my question is how do I get the print statements that are from
this separate thread/function back to the wxNoteBook's page (that has
a wxTextCtrl on it)? Is it a simple matter of std.out redirection? I
think there is more to this since it is a different python thread
altogether.
Thanks for any help