I want to use python to handle events from a COM server component. This server has a register() method which receive an IDispatch object and invokes OnXXX methods on it when various events are generated.
Can you achieve this with win32com.client or other python library? I didn't found a real example for doing so.
Pseudo-code:
class handler(object):
def onXXX(arg1, arg2):
pass
def onYYY(arg1):
pass
h=handler()
server.register(h)
Thanks!