enthought / enthought/comtypes

enum unique values from enum in typelib are not accessible if function with the same name exists

Open
#174 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.