I am using python2.7 with win32com module to access a win32 COM Library. with:
import win32com.client
app = win32com.client.Dispatch('Word.Application')
I get an application object that works fine in python, although I do have only late binding available.
Now I would like to inherite from this class:
class icad(app):
pass
whicht throws the following exception:
TypeError: Error when calling the metaclass bases
__init__() takes at most 2 arguments (4 given)
Is there a way to inherit from these COM classes at runtime? Metaclass seems to be the hint but I do not know where to start.