Displaying contents of a file using PyWin

2006-12-21 Thread MiguelS
How do I display the contents of a file in a window using PyWin? Thanks, MS -- http://mail.python.org/mailman/listinfo/python-list

Re: Displaying contents of a file using PyWin

2006-12-21 Thread MiguelS
import win32ui from pywin.mfc import docview t = object_template() d = t.OpenDocumentFile("d:/temp/music.log", True) Crashes PythonWin -- http://mail.python.org/mailman/listinfo/python-list

Re: Displaying contents of a file using PyWin

2006-12-21 Thread MiguelS
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. -- http://mail.python.org/mailman/listinfo/python-list