Displaying contents of a file using PyWin

MiguelS david.stephed at googlemail.com
Thu Dec 21 11:51:37 EST 2006


Sorry, the code I posted was wrong. I tried


import win32ui
from pywin.mfc import docview

t = docview.DocTemplate()
t.OpenDocumentFile("d:/temp/music.log", True)

This caused windows to close PythonWin.




More information about the Python-list mailing list