Commit 8e7fcb58 authored by santiago duque's avatar santiago duque

added second button and logic to stop events as a test

parent de23c954
......@@ -68,7 +68,7 @@ def play_sound(index):
print("Playing...")
pygame.event.clear()
sound_playing = False
btn_array[current_sound_index].when_pressed = lambda: btn_pressed(index)
#btn_array[current_sound_index].when_pressed = lambda: btn_pressed(index)
print("Finished. ")
""" todo
......@@ -125,7 +125,6 @@ setup_paths(False)
def btn_pressed(index):
global btn_array
global sound_playing
print('keeps pressing')
btn_array[index].when_pressed = None
btn_array[index].when_released = lambda: resetBtn(index)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment