run.py 文件源码

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

项目:QiniuSync 作者: beyondskyway 项目源码 文件源码
def sys_tray(self):
        import itertools, glob
        from sys_tray_icon import SysTrayIcon
        # ????
        icons = itertools.cycle(glob.glob('*.ico'))
        # ???????
        hover_text = "QiniuSync"
        import ctypes
        import win32con
        wnd = ctypes.windll.kernel32.GetConsoleWindow()
        if wnd != 0:
            ctypes.windll.user32.ShowWindow(wnd, win32con.SW_HIDE)
            ctypes.windll.kernel32.CloseHandle(wnd)

        # ????
        def quit_sync():
            self.stop_watch()
        # ??????
        SysTrayIcon(next(icons), hover_text, menu_options=(), on_quit=quit_sync, default_menu_index=1, wnd=wnd)

    # ????
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号