comparison cagou/core/common.py @ 247:cf61a011f731

core (notes), common (symbol): added an icon showing note level: because of Symbol binding, it was difficult to precisely set the icon position, so Symbol has been modified to remove bindings. Added consts for INFO, WARNING and ERROR colors.
author Goffi <goffi@goffi.org>
date Sat, 26 Jan 2019 20:24:48 +0100
parents 059c5b39032d
children ba7b8cb7ddcd
comparison
equal deleted inserted replaced
246:15e47bbb192c 247:cf61a011f731
69 69
70 70
71 class Symbol(Label): 71 class Symbol(Label):
72 symbol_map = None 72 symbol_map = None
73 symbol = properties.StringProperty() 73 symbol = properties.StringProperty()
74 margin = properties.NumericProperty(0)
75 74
76 def __init__(self, **kwargs): 75 def __init__(self, **kwargs):
77 if self.symbol_map is None: 76 if self.symbol_map is None:
78 with open(G.host.app.expand('{media}/fonts/fontello/config.json')) as f: 77 with open(G.host.app.expand('{media}/fonts/fontello/config.json')) as f:
79 fontello_conf = json.load(f) 78 fontello_conf = json.load(f)