From: Ismaƫl Bouya Date: Tue, 26 Jul 2016 14:25:35 +0000 (+0200) Subject: Stop all actions before leaving X-Git-Tag: 1.0.0~23^2~1 X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git;a=commitdiff_plain;h=a1d7f30a1cafbfcf3a0a561fcab71ce6437a3d45 Stop all actions before leaving --- diff --git a/helpers/mapping.py b/helpers/mapping.py index 1f63459..6e3b291 100644 --- a/helpers/mapping.py +++ b/helpers/mapping.py @@ -71,6 +71,7 @@ class Mapping(RelativeLayout): if len(modifiers) == 0 and key is not None: threading.Thread(name="MSKeyAction", target=key.run).start() elif 'ctrl' in modifiers and (keycode[0] == 113 or keycode[0] == '99'): + self.stop_all_running() for thread in threading.enumerate(): if thread.getName()[0:2] != "MS": continue