},
{
'trigger': 'reload',
- 'source': 'loaded',
+ 'source': ['loaded','failed'],
'dest': 'configuring',
'after': 'key_loaded_callback'
},
description = ListProperty([])
state = StringProperty("")
+ def get_alias_line_color(self):
+ if self.is_loaded_running():
+ return [0, 0, 0, 1]
+ else:
+ return [120/255, 120/255, 120/255, 1]
+
+ def set_alias_line_color(self):
+ pass
+
+ line_color = AliasProperty(get_alias_line_color, set_alias_line_color,
+ bind=['state'])
+
def get_alias_color(self):
if self.is_loaded_inactive():
return [1, 1, 1, 1]
def set_description(self, description):
if description[0] is not None:
self.description_title = str(description[0])
+ self.description = []
for desc in description[1 :]:
if desc is None:
self.description.append("")