Commit 4622f645 authored by santiago duque's avatar santiago duque

added second button and logic to stop events as a test

parent 8aa60ade
...@@ -138,7 +138,8 @@ def resetBtn(index): ...@@ -138,7 +138,8 @@ def resetBtn(index):
#if(sound_playing): #if(sound_playing):
print('btn released') print('btn released')
btn_array[index].when_released = None btn_array[index].when_released = None
#btn_array[index].when_pressed = lambda: btn_pressed(index) pygame.time.wait(100)
btn_array[index].when_pressed = lambda: btn_pressed(index)
btn1 = Button(21) btn1 = Button(21)
btn1.when_pressed = lambda: btn_pressed(0) btn1.when_pressed = lambda: btn_pressed(0)
......
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