]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - helpers/action.py
Use kivy instead of pygame
[perso/Immae/Projets/Python/MusicSampler.git] / helpers / action.py
index d4c6252db70df932f954cc94e0ef26db75322b55..aff61e701f76ecc72721436e5bb315aab7cf557c 100644 (file)
@@ -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: