connect.py 文件源码

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

项目:CodeReader 作者: jasonrbr 项目源码 文件源码
def Connect(self, coInstance, eventInstance, eventCLSID = None):
        try:
            oleobj = coInstance._oleobj_
        except AttributeError:
            oleobj = coInstance
        cpc=oleobj.QueryInterface(pythoncom.IID_IConnectionPointContainer)
        if eventCLSID is None: eventCLSID = eventInstance.CLSID
        comEventInstance = self._wrap(eventInstance)
        self.cp=cpc.FindConnectionPoint(eventCLSID)
        self.cookie = self.cp.Advise(comEventInstance)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号