Python TAPI COM object with events
问题 I try use win32com.client.DispatchWithEvents for TAPI COM object import win32com.client class TapiEvents: pass tapi = win32com.client.DispatchWithEvents("{21D6D48E-A88B-11D0-83DD-00AA003CCABD}",TapiEvents) But it gives an error: This COM object does not support events. 回答1: A working example looks like (working with CiscoTSP) import win32com.client cls="TAPI.TAPI.1" # need for gen_py ti = win32com.client.Dispatch(cls)._oleobj_.GetTypeInfo() tlb, index = ti.GetContainingTypeLib() tla = tlb