diff options
Diffstat (limited to 'music_sampler/app.py')
-rw-r--r-- | music_sampler/app.py | 18 |
1 files changed, 1 insertions, 17 deletions
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 | |||
16 | 16 | ||
17 | register_fonts() | 17 | register_fonts() |
18 | 18 | ||
19 | from .app_blocks.actionlist import * | ||
19 | from .app_blocks.playlist import * | 20 | from .app_blocks.playlist import * |
20 | 21 | ||
21 | class KeyList(RelativeLayout): | 22 | class KeyList(RelativeLayout): |
@@ -35,23 +36,6 @@ class KeyList(RelativeLayout): | |||
35 | if len(self.keylist) > 2: | 36 | if len(self.keylist) > 2: |
36 | self.third_key = self.keylist[2] | 37 | self.third_key = self.keylist[2] |
37 | 38 | ||
38 | class ActionList(RelativeLayout): | ||
39 | action_title = StringProperty("") | ||
40 | action_list = ListProperty([]) | ||
41 | |||
42 | def update_list(self, key, action_descriptions): | ||
43 | self.action_title = "actions linked to key {}:".format(key.key_sym) | ||
44 | self.action_list = [] | ||
45 | |||
46 | for [action, status] in action_descriptions: | ||
47 | if status == "done": | ||
48 | icon = "✓" | ||
49 | elif status == "current": | ||
50 | icon = "✅" | ||
51 | else: | ||
52 | icon = " " | ||
53 | self.action_list.append([icon, action]) | ||
54 | |||
55 | class Screen(FloatLayout): | 39 | class Screen(FloatLayout): |
56 | pass | 40 | pass |
57 | 41 | ||