- thread.join()
-
- pygame.quit()
- sys.exit()
-
- if context == 'normal':
- if event.type == pygame.KEYDOWN:
- key = mapping.find_by_key_num(event.key)
- if key is not None and not key.disabled:
- threading.Thread(name = "MSKeyAction", target=key.do_actions).start()
- threading.Thread(name = "MSClic", target=key.list_actions, args = [screen]).start()
- elif event.type == pygame.MOUSEBUTTONUP:
- key = mapping.find_by_collidepoint(pygame.mouse.get_pos())
- if key is not None:
- threading.Thread(name = "MSClic", target=key.list_actions, args = [screen]).start()
-
- draw_lock.acquire()
- police = helpers.font(14)
- icon_police = helpers.font(14, font = "Symbola")
-
- surface = pygame.Surface((208, 250)).convert()
- surface.fill((250, 250, 250))
- offset = 0
- for music_file in open_files.values():
- police.set_bold(False)
- if music_file.is_playing():
+
+ text = "{}/{}".format(
+ helpers.duration_to_min_sec(music_file.sound_position),
+ helpers.duration_to_min_sec(music_file.sound_duration)
+ )
+