Win32 embedding and extending

Chris Liechti cliechti at gmx.net
Tue May 21 15:12:22 EDT 2002


michael.ingram at echostar.com (Michael Ingram) wrote in 
news:ccb95f87.0205211013.56d24889 at posting.google.com:
...
> 1.) I would like to redirect the interpreter's output to one of my
>     SDI's CRichEditCtrl controls.  Is this the intention of Win32ui?

you only need to provide a write method which puts the text in your 
control. something like that:

class Redirect:
    	def write(s):
    	    	yourextensionscontrol.appendtextincontrol(s)

sys.stdout = sys.stderr = Redirect()

chris
-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list