[python-win32] [Fwd: Re: Reading constants]

Charlie Clark charlie at begeistert.org
Wed Jan 28 15:12:00 CET 2009


Am 28.01.2009 um 10:05 schrieb Graham Bloice:

> Or, use the built in win32com support for constants, e.g.  
> win32com.client.constants.myConstantName.  Note I think this only  
> works if you've run MakePy over the type library for the object.
>
> Search the pythonwin help for the Quick Start to Client side COM.


Got it! The constants I'm interested get slightly different names but  
so it's worth a look at the generated Python file which has them all  
nicely commented.

Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226





More information about the python-win32 mailing list