diff options
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: |