]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - helpers/mapping.py
Fix threading problems with ipython
[perso/Immae/Projets/Python/MusicSampler.git] / helpers / mapping.py
index ee5623a9843f503b2f034d7fa6e8794c483ba208..84e99410874a979b7252329c245f152877582586 100644 (file)
@@ -130,7 +130,7 @@ class Mapping:
             should_redraw_key = key.draw(self.background)
 
             if should_redraw_key:
-                threading.Thread(target = key.poll_redraw, args = [self.background]).start()
+                threading.Thread(name = "MSPollRedraw", target = key.poll_redraw, args = [self.background]).start()
         self.blit()
 
     def blit(self):