]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blob - music_sampler/actions/interrupt_wait.py
Make 'interrupt_wait' able to interrupt all waits
[perso/Immae/Projets/Python/MusicSampler.git] / music_sampler / actions / interrupt_wait.py
1 def run(action, wait_id=None, **kwargs):
2 action.mapping.interrupt_wait(wait_id)
3
4 def description(action, wait_id=None, **kwargs):
5 if wait_id is None:
6 return _("interrupt all waits")
7 else:
8 return _("interrupt wait with id {}").format(wait_id)