Python 2.3, win32all-157, AttributeError: wdFormatText

Reinhard Koenig rkoenig at ginko.de
Mon Oct 20 03:18:10 EDT 2003


Hello,

I' m using Python 2.3, win32all-157 under W2K. I've applied the makepy
utility for the Word 8.0 object library. I now receive:

Python 2.3.1 (#47, Sep 23 2003, 23:47:32) [MSC v.1200 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import win32com.client
>>> win32com.client.Dispatch("Word.Application")
<COMObject Word.Application>
>>> win32com.client.constants.wdFormatText
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "F:\PYTHON\lib\site-packages\win32com\client\__init__.py", line
168, in __getattr__
    raise AttributeError, a
AttributeError: wdFormatText
>>>

I've had no problems with earlier versions.
What is wrong?




More information about the Python-list mailing list