tts_typelib.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:calibre-tts-ebook-viewer 作者: christineye 项目源码 文件源码
def __init__(self, oobj = None):
        if oobj is None:
            self._olecp = None
        else:
            import win32com.server.util
            from win32com.server.policy import EventHandlerPolicy
            cpc=oobj._oleobj_.QueryInterface(pythoncom.IID_IConnectionPointContainer)
            cp=cpc.FindConnectionPoint(self.CLSID_Sink)
            cookie=cp.Advise(win32com.server.util.wrap(self, usePolicy=EventHandlerPolicy))
            self._olecp,self._olecp_cookie = cp,cookie
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号