description = ListProperty([])
state = StringProperty("")
+ def get_alias_line_cross_color(self):
+ if not self.is_failed() and (
+ not self.is_loaded(allow_substates=True)\
+ or self.is_loaded_running()\
+ or self.is_loaded_protecting_repeat()):
+ return [120/255, 120/255, 120/255, 1]
+ else:
+ return [0, 0, 0, 0]
+
+ def set_alias_line_cross_color(self):
+ pass
+
+ line_cross_color = AliasProperty(
+ get_alias_line_cross_color,
+ set_alias_line_cross_color,
+ bind=['state'])
+
def get_alias_line_color(self):
if self.is_loaded_running():
return [0, 0, 0, 1]