]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/commitdiff
Change color when key is running
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 27 Jul 2016 10:04:21 +0000 (12:04 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 27 Jul 2016 10:04:21 +0000 (12:04 +0200)
helpers/actions/interrupt_wait.py
helpers/key.py

index 36766a224cfcc5f652349ab8e8ce2f0024e60ea7..8f465f03989d5e4c7926ffda4eabc54aaee0f8de 100644 (file)
@@ -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):
index b5c1af95a3901a0a1e095506f4538f52399775c9..113cf8e94801fdaa15ba529f6d94509e5edc7d5b 100644 (file)
@@ -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():