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]
y: (self.parent.top-self.parent.y) - (self.row) * self.parent.key_size - (self.row - 1) * self.parent.key_sep
x: (self.col - 1) * self.parent.key_size + int(self.col - 1) * self.parent.key_sep + self.pad_col_sep
size_hint: None, None
- line_color: 120/255, 120/255, 120/255, 1
enabled: True
line_width: 2
row: 1