wx :: _core :: PyOnDemandOutputWindow :: Class PyOnDemandOutputWindow
[hide private]

Class PyOnDemandOutputWindow



A class that can be used for redirecting Python's stdout and stderr streams. It will do nothing until something is wrriten to the stream at which point it will create a Frame with a text area and write the text there.

Instance Methods [hide private]
 
CreateOutputWindow(self, st)
 
OnCloseWindow(self, event)
 
SetParent(self, parent)
Set the window to be used as the popup Frame's parent.
 
__init__(self, title='wxPython: stdout/stderr')
 
close(self)
 
flush(self)
 
write(self, text)
Create the output window if needed and write the string to it.
Method Details [hide private]

write(self, text)

 
Create the output window if needed and write the string to it. If not called in the context of the gui thread then uses CallAfter to do the work there.