Jan-02-2019, 10:54 PM
Hello!
I try to use a typelib of a COM application.
In the Typelib are also enum's defined.
Is there a chance to use the enum definitions in python?
I tried import comtypes
e.g. if I code
the variable mycmod is an integer and has no idea of the defined enum values
this doesn't work:
[icode]mycmod : MyApp.ColorModel = MyApp.ColorModel.RGB
Thank you for advice
Erhy
I try to use a typelib of a COM application.
In the Typelib are also enum's defined.
Is there a chance to use the enum definitions in python?
I tried import comtypes
e.g. if I code
Quote:mycmod : MyApp.ColorModel = 0
the variable mycmod is an integer and has no idea of the defined enum values
this doesn't work:
[icode]mycmod : MyApp.ColorModel = MyApp.ColorModel.RGB
Thank you for advice
Erhy