__init__.py 文件源码

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

项目:wintenApps 作者: josephsl 项目源码 文件源码
def __init__(self):
        super(GlobalPlugin, self).__init__()
        # #20: don't even think about proceeding in secure screens (especially add-on updates).
        if globalVars.appArgs.secure: return
        self.prefsMenu = gui.mainFrame.sysTrayIcon.preferencesMenu
        self.w10Settings = self.prefsMenu.Append(wx.ID_ANY, _("&Windows 10 App Essentials..."), _("Windows 10 App Essentials add-on settings"))
        gui.mainFrame.sysTrayIcon.Bind(wx.EVT_MENU, w10config.onConfigDialog, self.w10Settings)
        if w10config.canUpdate and config.conf["wintenApps"]["autoUpdateCheck"]:
            # But not when NVDA itself is updating.
            if not (globalVars.appArgs.install and globalVars.appArgs.minimal):
                wx.CallAfter(w10config.autoUpdateCheck)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号