X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=helpers%2Faction.py;h=aff61e701f76ecc72721436e5bb315aab7cf557c;hb=8612c5f8bb0fc9529bc489a6719654d4474db6d5;hp=d4c6252db70df932f954cc94e0ef26db75322b55;hpb=9d505ec9accd9a84bc6f22f4118bed9669c32fc8;p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git diff --git a/helpers/action.py b/helpers/action.py index d4c6252..aff61e7 100644 --- a/helpers/action.py +++ b/helpers/action.py @@ -31,7 +31,7 @@ class Action: def run(self): print(self.description()) getattr(self, self.action)(**self.arguments) - pygame.event.post(pygame.event.Event(pygame.USEREVENT)) + #pygame.event.post(pygame.event.Event(pygame.USEREVENT)) def description(self): return getattr(self, self.action + "_print")(**self.arguments) @@ -74,7 +74,7 @@ class Action: pygame.mixer.stop() def stop_all_actions(self, **kwargs): - self.key.mapping.stop_all_running() + self.key.parent.stop_all_running() def volume(self, music = None, value = 100, **kwargs): if music is not None: