Beispiel #1
0
 def play_alarm(self):
     if self.no_sound:
         return
     # noinspection PyBroadException
     try:
         sound.play(in_app_path("b15.wav"), block=False)
     except Exception:
         pass
Beispiel #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()
Beispiel #3
0
def play_alarm():
    # noinspection PyBroadException
    try:
        sound.play(in_app_path("b15.wav"), block=False)
    except Exception:
        pass