]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - helpers/actions/interrupt_wait.py
Move actions to separate files
[perso/Immae/Projets/Python/MusicSampler.git] / helpers / actions / interrupt_wait.py
diff --git a/helpers/actions/interrupt_wait.py b/helpers/actions/interrupt_wait.py
new file mode 100644 (file)
index 0000000..36766a2
--- /dev/null
@@ -0,0 +1,5 @@
+def run(action, wait_id=None):
+    action.mapping.interrupt_wait(wait_id)
+
+def description(action, wait_id=None, **kwargs):
+    return "interrupt wait with id {}".format(wait_id)