main.py 文件源码

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

项目:wxpythoncookbookcode 作者: driscollis 项目源码 文件源码
def onReload(self, event):
        """
        Reload the code!
        """
        if self.testFrame:
            self.testFrame.Close()
            try:
                reload(testApp)
            except NameError:
                # reload doesn't exist in Python 3. 
                # Use importlib.reload in Python 3.4+ 
                # or imp.reload in Python 3.0 - 3.3
                import importlib
                importlib.reload(testApp)
            self.showApp()
        else:
            self.testFrame = None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号