+ text = "{}/{}".format(
+ helpers.duration_to_min_sec(music_file.sound_position),
+ helpers.duration_to_min_sec(music_file.sound_duration)
+ )
+
+ if music_file.is_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_number = 0):
+ self.action_title = "actions linked to key {}:".format(key.key_sym)
+ self.action_list = []
+
+ action_descriptions = [action.description() for action in key.actions]
+
+ for index, description in enumerate(action_descriptions):
+ if index < int(action_number):
+ icon = "✓"
+ elif index + 0.5 == action_number:
+ icon = "✅"
+ else:
+ icon = " "
+
+ self.action_list.append([icon, description])
+
+class Screen(FloatLayout):
+ pass