[Tutor] Tkinter help

alan.gauld@bt.com alan.gauld@bt.com
Sun, 26 Aug 2001 16:23:38 +0100


> This might help:  Here's an interpreter session that that 
> traps everything coming at sys.stdout into a StringIO object:
> ###
> >>> import StringIO
> >>> io = StringIO.StringIO()
> >>> import sys
> >>> sys.stdout = io

Neat Danny, I'd forgotten about stringIO in Python. Better than 
clunking around opening and closing temp files etc. I like it! :-)

Alan G