COM, IDL, and enum

Mark Hammond mhammond at keypoint.com.au
Thu Apr 29 01:02:42 EDT 2004


Olaf Meding wrote:

> How do I access the values of the enum "ERLockStatus" specified in the
> (abreviated IDL) file below?

You must ensure that makepy has been run for your object - this 
generally just means calling gencache.EnsureDispatch() to create your 
object.  Once the makepy'd file for the IDL has been loaded, the 
constants will be available as "win32com.client.constants.constant_name"

Mark



More information about the Python-list mailing list