aboutsummaryrefslogtreecommitdiff
path: root/music_sampler/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'music_sampler/app.py')
-rw-r--r--music_sampler/app.py18
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
17register_fonts() 17register_fonts()
18 18
19from .app_blocks.actionlist import *
19from .app_blocks.playlist import * 20from .app_blocks.playlist import *
20 21
21class KeyList(RelativeLayout): 22class 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
38class 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
55class Screen(FloatLayout): 39class Screen(FloatLayout):
56 pass 40 pass
57 41