enthought / enthought/comtypes
enum unique values from enum in typelib are not accessible if function with the same name exists
Open
- Dominant language
- Python
- Stars
- 345
- Forks
- 105
- PR merge metrics
- No merged PRs in 30d
Description
Hello!
I imported a typelib with
comtypes.client.GetModule((tlb_id, 1, 0))
I can access to most of the unique defined values e.g. with
mycmod : MyApp.ColorModel = comtypes.gen.MyApp.CSMLab
But not, if the name is defined otherwise
e.g. if comtypes.gen.MyApp.RGB is a function
I looked to the generated .py file in site-packages\comtypes\gen
and see, that in # values for enumeration 'ColorModel'
the unique definition of RGB is omitted.
I'm on client side and not able to update the typlib
Thank's for comment
Erhie
Contributor guide
Assessment
This issue has not been assessed yet.