示例#1
0
文件: tomato.py 项目: aGIToz/pydoro
 def play_alarm(self):
     if self.no_sound:
         return
     # noinspection PyBroadException
     try:
         sound.play(in_app_path("b15.wav"), block=False)
     except Exception:
         pass
示例#2
0
def main():
    config = Configuration()
    if config.audio_check:
        # WHY twice: to catch more issues
        sound.play(in_app_path("b15.wav"), block=True)
        sound.play(in_app_path("b15.wav"), block=True)
        sys.exit(0)
    if config.show_version:
        print("pydoro : version - {0}".format(__version__))
        sys.exit(0)
    UserInterface(config).run()
示例#3
0
def play_alarm():
    # noinspection PyBroadException
    try:
        sound.play(in_app_path("b15.wav"), block=False)
    except Exception:
        pass