diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-07-14 23:05:55 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-07-14 23:05:55 +0200 |
commit | 8e50011c8d5e5f4ac48f0856c9737d62f3e67838 (patch) | |
tree | eb4810a920284ea8a830be164ce7bd185d589dee /helpers/action.py | |
parent | 1b4b78f5b6df7182ac066fcc26a7b4f0e8586a47 (diff) | |
download | MusicSampler-8e50011c8d5e5f4ac48f0856c9737d62f3e67838.tar.gz MusicSampler-8e50011c8d5e5f4ac48f0856c9737d62f3e67838.tar.zst MusicSampler-8e50011c8d5e5f4ac48f0856c9737d62f3e67838.zip |
Rename 'add' to 'delta'
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: |