X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=helpers%2Fkey.py;h=f49b3ec6a6b9ebc070d45d4803038c61d1715c06;hb=f029e879b326c3b3dce3428561a280fa52b9f04c;hp=658c17f485e197d80d089737124f8ec25731a4bb;hpb=8601cdd853f205bdbc83dd78220f5e99ab624b68;p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git diff --git a/helpers/key.py b/helpers/key.py index 658c17f..f49b3ec 100644 --- a/helpers/key.py +++ b/helpers/key.py @@ -80,6 +80,9 @@ class Key(ButtonBehavior, Widget): self.actions.append(Action(action_name, self, **arguments)) def do_actions(self): + if not self.enabled: + return None + print("running actions for {}".format(self.key_sym)) start_time = time.time() self.parent.start_running(self, start_time)