intpyapp.py 文件源码

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

项目:remoteControlPPT 作者: htwenning 项目源码 文件源码
def OnViewBrowse( self, id, code ):
        " Called when ViewBrowse message is received "
        from pywin.mfc import dialog
        from pywin.tools import browser
        obName = dialog.GetSimpleInput('Object', '__builtins__', 'Browse Python Object')
        if obName is None:
            return
        try:
            browser.Browse(eval(obName, __main__.__dict__, __main__.__dict__))
        except NameError:
            win32ui.MessageBox('This is no object with this name')
        except AttributeError:
            win32ui.MessageBox('The object has no attribute of that name')
        except:
            traceback.print_exc()
            win32ui.MessageBox('This object can not be browsed')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号