Re: Displaying contents of a file using PyWin

2006-12-21 Thread Gabriel Genellina
[Forwarded from [EMAIL PROTECTED] At Thursday 21/12/2006 13:51, MiguelS wrote: import win32ui from pywin.mfc import docview t = docview.DocTemplate() t.OpenDocumentFile("d:/temp/music.log", True) This caused windows to close PythonWin. This appears to be a problem with pywin32. Using releas

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

Re: Displaying contents of a file using PyWin

2006-12-21 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, MiguelS wrote: > import win32ui > from pywin.mfc import docview > > t = object_template() > d = t.OpenDocumentFile("d:/temp/music.log", True) > > Crashes PythonWin What do you mean by `crashes`? Any chance you get a name error like:: NameError: name 'object_template'

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