diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-06-25 23:20:34 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-06-25 23:24:19 +0200 |
commit | 8612c5f8bb0fc9529bc489a6719654d4474db6d5 (patch) | |
tree | d335fa08bd49f155d1f9159a96904905e9b01777 /helpers/action.py | |
parent | 9d505ec9accd9a84bc6f22f4118bed9669c32fc8 (diff) | |
download | MusicSampler-8612c5f8bb0fc9529bc489a6719654d4474db6d5.tar.gz MusicSampler-8612c5f8bb0fc9529bc489a6719654d4474db6d5.tar.zst MusicSampler-8612c5f8bb0fc9529bc489a6719654d4474db6d5.zip |
Use kivy instead of pygame
Diffstat (limited to 'helpers/action.py')
-rw-r--r-- | helpers/action.py | 4 |
1 files changed, 2 insertions, 2 deletions
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: | |||
31 | def run(self): | 31 | def run(self): |
32 | print(self.description()) | 32 | print(self.description()) |
33 | getattr(self, self.action)(**self.arguments) | 33 | getattr(self, self.action)(**self.arguments) |
34 | pygame.event.post(pygame.event.Event(pygame.USEREVENT)) | 34 | #pygame.event.post(pygame.event.Event(pygame.USEREVENT)) |
35 | 35 | ||
36 | def description(self): | 36 | def description(self): |
37 | return getattr(self, self.action + "_print")(**self.arguments) | 37 | return getattr(self, self.action + "_print")(**self.arguments) |
@@ -74,7 +74,7 @@ class Action: | |||
74 | pygame.mixer.stop() | 74 | pygame.mixer.stop() |
75 | 75 | ||
76 | def stop_all_actions(self, **kwargs): | 76 | def stop_all_actions(self, **kwargs): |
77 | self.key.mapping.stop_all_running() | 77 | self.key.parent.stop_all_running() |
78 | 78 | ||
79 | def volume(self, music = None, value = 100, **kwargs): | 79 | def volume(self, music = None, value = 100, **kwargs): |
80 | if music is not None: | 80 | if music is not None: |