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