From: Ismaƫl Bouya Date: Wed, 27 Jul 2016 10:04:21 +0000 (+0200) Subject: Change color when key is running X-Git-Tag: 1.0.0~9 X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git;a=commitdiff_plain;h=70cfb266c677c77675def8ac26babf7c8ac7d0f8 Change color when key is running --- diff --git a/helpers/actions/interrupt_wait.py b/helpers/actions/interrupt_wait.py index 36766a2..8f465f0 100644 --- a/helpers/actions/interrupt_wait.py +++ b/helpers/actions/interrupt_wait.py @@ -1,4 +1,4 @@ -def run(action, wait_id=None): +def run(action, wait_id=None, **kwargs): action.mapping.interrupt_wait(wait_id) def description(action, wait_id=None, **kwargs): diff --git a/helpers/key.py b/helpers/key.py index b5c1af9..113cf8e 100644 --- a/helpers/key.py +++ b/helpers/key.py @@ -124,6 +124,8 @@ class Key(ButtonBehavior, Widget): return [1, 1, 1, 1] elif self.is_loaded_protecting_repeat(): return [*self.custom_color, 100/255] + elif self.is_loaded_running(): + return [*self.custom_color, 100/255] elif self.is_loaded(allow_substates=True): return [*self.custom_color, 1] elif self.is_failed():