helpers.draw_lock.acquire()
screen = pygame.display.set_mode(size)
-mapping = helpers.Mapping(screen)
+mapping = helpers.Mapping(screen, helpers.draw_lock)
action_surface = pygame.Surface((600, 250)).convert()
action_surface.fill((0,0,0))
event.type == pygame.KEYDOWN and
event.mod == 4160 and
event.key == pygame.K_c):
+ for thread in threading.enumerate():
+ if thread is threading.current_thread():
+ continue
+ thread.join()
+
pygame.quit()
sys.exit()