]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blob - music_sampler/actions/stop_all_actions.py
Make music_sampler multilingual
[perso/Immae/Projets/Python/MusicSampler.git] / music_sampler / actions / stop_all_actions.py
1 def run(action, key_start_time=0, other_only=False, **kwargs):
2 if other_only:
3 action.mapping.stop_all_running(
4 except_key=action.key,
5 key_start_time=key_start_time)
6 else:
7 action.mapping.stop_all_running()
8
9 def description(action, other_only=False, **kwargs):
10 message = "stopping all actions"
11 if other_only:
12 message += " except this key"
13
14 return _(message)