goldwave.py 文件源码

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

项目:goldWave 作者: josephsl 项目源码 文件源码
def script_announceRemainingTime(self, gesture):
        audioPos = self.getAudioPos(raw=True)
        if not audioPos or " " in audioPos or not self.getTrackLength():
            # Translators: An error message presented when remaining time cannot be anounced.
            ui.message(_("Cannot tell you remaining time for the current track"))
        else:
            if ":" in audioPos:
                ui.message(self.getRemainingTime(audioPos))
            elif float(audioPos) == 0.0:
                ui.message(self.getTrackLength())
            else:
                ui.message(self.getRemainingTime(audioPos))

    # Audio channels and zoom level.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号