comtypes
comtypes copied to clipboard
enum unique values from enum in typelib are not accessible if function with the same name exists
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