Displaying contents of a file using PyWin

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Thu Dec 21 11:13:36 EST 2006


In <1166716722.937893.297670 at 79g2000cws.googlegroups.com>, 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' is not defined

?

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list