X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=music_sampler.py;h=42c01e3adfa629c789cfd6f2ff570cb6106e8613;hb=8612c5f8bb0fc9529bc489a6719654d4474db6d5;hp=6fed26b05e8ddb5406c465b052a70eb9a5624f44;hpb=b58b8220c1f3f20e97ca806cf8db0e334b920f4c;p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git diff --git a/music_sampler.py b/music_sampler.py index 6fed26b..42c01e3 100644 --- a/music_sampler.py +++ b/music_sampler.py @@ -48,7 +48,7 @@ while 1: if event.type == pygame.KEYDOWN: key = mapping.find_by_key_num(event.key) if key is not None and not key.disabled: - threading.Thread(name = "MSKeyAction", target=key.do_actions).start() + threading.Thread(name = "MSKeyAction", target=key.do_actions, args = [screen]).start() threading.Thread(name = "MSClic", target=key.list_actions, args = [screen]).start() elif event.type == pygame.MOUSEBUTTONUP: key = mapping.find_by_collidepoint(pygame.mouse.get_pos())