recipe-286201.py 文件源码

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

项目:code 作者: ActiveState 项目源码 文件源码
def _runResponse(self, evt):
        """Passes on a response from the net thread.
        Called from wx main loop on reception of an wxEVT_RESPONSE"""
        d = maybeDeferred(evt.func, *evt.params, **evt.kwparams)
        if evt.onSuccess:
            def onDone(r):
                simpleCommand((evt.onSuccess, (r,), {}))
            d.addCallback(onDone)
        if evt.onFailure:
            def onFail(r):
                simpleCommand((evt.onFailure, (r,), {}))
            d.addErrback(onFail)

    # Methods called from net thread
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号