goldwave.py 文件源码

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

项目:goldWave 作者: josephsl 项目源码 文件源码
def script_toggleCommandAnnouncement(self, gesture):
        focus = api.getFocusObject()
        if focus.windowClassName not in ("TWaveView", "TSoundForm"):
            # Translators: Presented when command announcement toggle is unavailable.
            ui.message(_("You need to be in sound window to toggle command announcement"))
        else:
            self.commandAnnouncement = not self.commandAnnouncement
            # Handle the announcement of this script separately, since we need to speak even when false.
            if self.commandAnnouncement:
                # Translators: Presented when command announcement messages are turned on in Goldwave.
                ui.message(_("command announcement on"))
            else:
                # Translators: Presented when command announcement messages are turned off in Goldwave.
                ui.message(_("command announcement off"))
    # Translators: Input help mode message for command announcement command in Goldwave.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号