wx_app.py 文件源码

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

项目:pyopenvr 作者: cmbruns 项目源码 文件源码
def OnChar ( self, event ):
        key = event.GetKeyCode()
        # print (key)
        if key == ord('q') or key == ord('Q') or key == wx.WXK_ESCAPE: # Q or ESCAPE
            # print ("closing")
            self.window.Close()
            sys.exit(0) # In non-debug mode, Frame.Close() does not seem to close the application
            return
        #self.window.Refresh(False)
        event.Skip()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号