win32_counter.py 文件源码

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

项目:KeyCounter 作者: Microcore 项目源码 文件源码
def stop(self):
        if getattr(self, 'hook', None) is not None:
            del self.hook
        if self.HWND is not None:
            win32gui.Shell_NotifyIcon(win32gui.NIM_DELETE, (self.HWND, 0))
            # win32gui.PostMessage(self.HWND, win32con.WM_CLOSE, 0, 0)
            win32gui.DestroyWindow(self.HWND)
            self.HWND = None
        self.clear_instance_check_event()

        super(KeyCounter, self).stop()
        raise SystemExit(0)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号