From 60aa2bed939858f9aec4252071c8efd99baac7e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 28 Jul 2016 21:55:29 +0200 Subject: Use labels stacking to build actionlist --- music_sampler/app.py | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'music_sampler/app.py') diff --git a/music_sampler/app.py b/music_sampler/app.py index 510cb44..cce3969 100644 --- a/music_sampler/app.py +++ b/music_sampler/app.py @@ -16,6 +16,7 @@ from .mapping import Mapping register_fonts() +from .app_blocks.actionlist import * from .app_blocks.playlist import * class KeyList(RelativeLayout): @@ -35,23 +36,6 @@ class KeyList(RelativeLayout): if len(self.keylist) > 2: self.third_key = self.keylist[2] -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]) - class Screen(FloatLayout): pass -- cgit v1.2.3