diff options
Diffstat (limited to 'helpers/action.py')
-rw-r--r-- | helpers/action.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/helpers/action.py b/helpers/action.py index 28afcee..2f294a0 100644 --- a/helpers/action.py +++ b/helpers/action.py | |||
@@ -87,11 +87,11 @@ class Action: | |||
87 | def stop_all_actions(self, **kwargs): | 87 | def stop_all_actions(self, **kwargs): |
88 | self.mapping.stop_all_running() | 88 | self.mapping.stop_all_running() |
89 | 89 | ||
90 | def volume(self, music = None, value = 100, add = False, **kwargs): | 90 | def volume(self, music = None, value = 100, delta = False, **kwargs): |
91 | if music is not None: | 91 | if music is not None: |
92 | music.set_volume(value, add = add) | 92 | music.set_volume(value, delta = delta) |
93 | else: | 93 | else: |
94 | self.mapping.set_master_volume(value, add = add) | 94 | self.mapping.set_master_volume(value, delta = delta) |
95 | 95 | ||
96 | def wait(self, duration = 0, music = None, **kwargs): | 96 | def wait(self, duration = 0, music = None, **kwargs): |
97 | self.sleep_event = threading.Event() | 97 | self.sleep_event = threading.Event() |
@@ -156,8 +156,8 @@ class Action: | |||
156 | def stop_all_actions_print(self, **kwargs): | 156 | def stop_all_actions_print(self, **kwargs): |
157 | return "stopping all actions" | 157 | return "stopping all actions" |
158 | 158 | ||
159 | def volume_print(self, music = None, value = 100, add = False, **kwargs): | 159 | def volume_print(self, music = None, value = 100, delta = False, **kwargs): |
160 | if add: | 160 | if delta: |
161 | if music is not None: | 161 | if music is not None: |
162 | return "{:+d}% to volume of « {} »".format(value, music.name) | 162 | return "{:+d}% to volume of « {} »".format(value, music.name) |
163 | else: | 163 | else: |