mirroring text window to file

Erik Max Francis max at alcyone.com
Fri Apr 11 23:56:48 EDT 2003


Marcel Achim wrote:

> I was wondering if there's an existing solution other than writing
> to both a file and an output text window (Tk text widget), as in :
> 
>    text_window.insert('end', output)
>    log_file.write(output)

Write a wrapper class that does both.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ When you talk to her / Talk to her
\__/ India Arie
    WebVal / http://www.alcyone.com/pyos/webval/
 URL scanner, maintainer, and validator in Python.




More information about the Python-list mailing list