__init__.py 文件源码

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

项目:dictationbridge-nvda 作者: dictationbridge 项目源码 文件源码
def onInstallDragonCommands(evt):
    #Translators: Warning about having custom commands already.
    goAhead = gui.messageBox(_("If you are on a computer with shared commands, and you have multiple users using these commands, this will override them. Please do not proceed unless you are sure you aren't sharing commands over a network. if you are, please read \"Importing Commands Into a Shared System\" in the Dictation Bridge documentation for manual steps.\nDo you want to proceed?"),
        #Translators: Warning dialog title.
        _("Warning: Potentially Dangerous Opperation Will be Performed"),
        wx.YES|wx.NO)
    if goAhead==wx.NO:
        return
    dialog = gui.IndeterminateProgressDialog(gui.mainFrame,
        #Translators: Title for a dialog shown when Dragon  Commands are being installed!
        _("Dragon Command Installation"),
        #Translators: Message shown in the progress dialog for dragon command installation.
        _("Please wait while Dragon commands are installed."))
    try:
        gui.ExecAndPump(_onInstallDragonCommands)
    except: #Catch all, because if this fails, bad bad bad.
        log.error("DictationBridge commands failed to install!", exc_info=True)
    finally:
        dialog.done()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号