]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/commitdiff
Stop all actions before leaving
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Tue, 26 Jul 2016 14:25:35 +0000 (16:25 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Tue, 26 Jul 2016 14:25:35 +0000 (16:25 +0200)
helpers/mapping.py

index 1f63459adbf76ca206788ba405cc2e448a0198a3..6e3b29153e4d817205d015cf8a441f56da654189 100644 (file)
@@ -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