installTasks.py 文件源码

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

项目:wintenApps 作者: josephsl 项目源码 文件源码
def onInstall():
    requiredVer = "Windows 10 Version 1703"
    # Translators: Dialog text shown when attempting to install the add-on on an unsupported version of Windows (minSupportedVersion is the minimum version required for this add-on).
    if sys.getwindowsversion().build < 15063 and gui.messageBox(_("You are using an older version of Windows. This add-on requires {minSupportedVersion} or later. Are you sure you wish to install this add-on anyway?").format(minSupportedVersion = requiredVer),
    # Translators: title of the dialog shown when attempting to install the add-on on an old version of Windows.
    _("Old Windows version"), wx.YES | wx.NO | wx.CANCEL | wx.CENTER | wx.ICON_QUESTION) == wx.NO:
        raise RuntimeError("Old Windows version detected")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号