comparison cagou/core/common.py @ 218:30be583dbabc

core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
author Goffi <goffi@goffi.org>
date Sun, 24 Jun 2018 22:09:49 +0200
parents 284cb5c467b0
children 24f8ab7c08be
comparison
equal deleted inserted replaced
217:286f14127f61 218:30be583dbabc
91 91
92 class SymbolButton(ButtonBehavior, Symbol): 92 class SymbolButton(ButtonBehavior, Symbol):
93 pass 93 pass
94 94
95 95
96 class SymbolLabel(ButtonBehavior, BoxLayout):
97 symbol = properties.StringProperty("")
98 text = properties.StringProperty("")
99 color = properties.ListProperty(C.COLOR_SEC)
100 bold = properties.BooleanProperty(True)
101 symbol_wid = properties.ObjectProperty()
102 label = properties.ObjectProperty()
103
104
96 class ActionSymbol(Symbol): 105 class ActionSymbol(Symbol):
97 pass 106 pass
98 107
99 108
100 class ActionIcon(BoxLayout): 109 class ActionIcon(BoxLayout):