aboutsummaryrefslogtreecommitdiff
path: root/helpers/key.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-27 00:14:08 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-27 00:14:08 +0200
commitab47d2a1269c20d70f42942c4295c056544491f4 (patch)
tree647e4fb09e0fb11e31a87add138218f5b6d54354 /helpers/key.py
parent4b6d1836f3cc6e063bca3f4011ce5d17f733baa6 (diff)
downloadMusicSampler-ab47d2a1269c20d70f42942c4295c056544491f4.tar.gz
MusicSampler-ab47d2a1269c20d70f42942c4295c056544491f4.tar.zst
MusicSampler-ab47d2a1269c20d70f42942c4295c056544491f4.zip
Add possibility to reload YML config file
Diffstat (limited to 'helpers/key.py')
-rw-r--r--helpers/key.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/helpers/key.py b/helpers/key.py
index 363e9ce..4ec08d1 100644
--- a/helpers/key.py
+++ b/helpers/key.py
@@ -70,7 +70,7 @@ class Key(ButtonBehavior, Widget):
70 }, 70 },
71 { 71 {
72 'trigger': 'reload', 72 'trigger': 'reload',
73 'source': 'loaded', 73 'source': ['loaded','failed'],
74 'dest': 'configuring', 74 'dest': 'configuring',
75 'after': 'key_loaded_callback' 75 'after': 'key_loaded_callback'
76 }, 76 },
@@ -190,6 +190,7 @@ class Key(ButtonBehavior, Widget):
190 def set_description(self, description): 190 def set_description(self, description):
191 if description[0] is not None: 191 if description[0] is not None:
192 self.description_title = str(description[0]) 192 self.description_title = str(description[0])
193 self.description = []
193 for desc in description[1 :]: 194 for desc in description[1 :]:
194 if desc is None: 195 if desc is None:
195 self.description.append("") 196 self.description.append("")