aboutsummaryrefslogtreecommitdiff
path: root/helpers/actions
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-27 02:01:51 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-27 02:01:51 +0200
commit6c42e32d98aa2e04d446f31b8e667a280acf4b54 (patch)
treed372a86713857dd3c8f8c99ad2256da51048fad9 /helpers/actions
parent343822904ee26955e622e325539c64aee1c2112e (diff)
downloadMusicSampler-6c42e32d98aa2e04d446f31b8e667a280acf4b54.tar.gz
MusicSampler-6c42e32d98aa2e04d446f31b8e667a280acf4b54.tar.zst
MusicSampler-6c42e32d98aa2e04d446f31b8e667a280acf4b54.zip
Coding styles
Diffstat (limited to 'helpers/actions')
-rw-r--r--helpers/actions/wait.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/helpers/actions/wait.py b/helpers/actions/wait.py
index f7d2a78..ea42408 100644
--- a/helpers/actions/wait.py
+++ b/helpers/actions/wait.py
@@ -5,7 +5,9 @@ def run(action, duration=0, music=None, set_wait_id=None, **kwargs):
5 action.mapping.add_wait_id(set_wait_id, action) 5 action.mapping.add_wait_id(set_wait_id, action)
6 6
7 action.sleep_event = threading.Event() 7 action.sleep_event = threading.Event()
8 action.sleep_event_timer = threading.Timer(duration, action.sleep_event.set) 8 action.sleep_event_timer = threading.Timer(
9 duration,
10 action.sleep_event.set)
9 11
10 if music is not None: 12 if music is not None:
11 music.wait_end() 13 music.wait_end()