def __init__(self):
wx.Frame.__init__(self, None, -1, 'My Frame')
self.hm = PyHook3.HookManager()
self.hm.MouseAllButtonsDown = self.OnMouseEvent
self.hm.KeyDown = self.OnKeyboardEvent
self.hm.HookMouse()
self.hm.HookKeyboard()
wx.EVT_CLOSE(self, self.OnClose)
评论列表
文章目录