Skip to content

Commit

Permalink
adds sound to alert when done
Browse files Browse the repository at this point in the history
  • Loading branch information
mantertius committed Dec 29, 2023
1 parent e6f3fb4 commit 22ff367
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ManualTestSensei/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import streamlit as st
import ubuntu_data
import time
import pygame
# from matchers.eager_step import EagerStep

from matchers.ambiguous_test import AmbiguousTest
Expand Down Expand Up @@ -54,7 +55,13 @@
print(f'{dt.now().strftime("%d-%m-%Y %H:%M:%S")} | Total time elapsed: {deltatime}')
elapsed_time_element.write(f"Total time taken for transformation: {deltatime:.2f} seconds")

pygame.mixer.init()
pygame.mixer.music.load("sound.wav")
pygame.mixer.music.play()

# Wait for the sound to finish playing
while pygame.mixer.music.get_busy():
pygame.time.Clock().tick(10)
if refactored_tests:
refactored_tests = [simplify_test(test) for test in refactored_tests]
tabs = ['Initial', 'Refactored']
Expand Down
Binary file added ManualTestSensei/sound.wav
Binary file not shown.

0 comments on commit 22ff367

Please sign in to comment.