- if event.type == pygame.QUIT or (
- 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()
+ if music_file.is_loaded_paused():
+ self.playlist.append(["⏸", music_file.name, text, False])
+ else:
+ self.playlist.append(["⏵", music_file.name, text, True])
+
+
+class ActionList(RelativeLayout):
+ action_title = StringProperty("")
+ action_list = ListProperty([])
+
+ def update_list(self, key, action_descriptions):
+ self.action_title = "actions linked to key {}:".format(key.key_sym)
+ self.action_list = []
+
+ for [action, status] in action_descriptions:
+ if status == "done":
+ icon = "✓"
+ elif status == "current":
+ icon = "✅"
+ else:
+ icon = " "
+ self.action_list.append([icon, action])