Mercurial > libervia-desktop-kivy
diff cagou/core/cagou_widget.py @ 179:7177fe2d9725
common: new ActionIcon widget which display symbol or image icon according to what is specified in plugin_info
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 01 May 2018 20:48:48 +0200 |
parents | 60b2b2bad747 |
children | a676cb07c1cb |
line wrap: on
line diff
--- a/cagou/core/cagou_widget.py Tue May 01 18:28:22 2018 +0200 +++ b/cagou/core/cagou_widget.py Tue May 01 20:48:48 2018 +0200 @@ -20,12 +20,12 @@ from sat.core import log as logging log = logging.getLogger(__name__) -from kivy.uix.image import Image from kivy.uix.behaviors import ButtonBehavior from kivy.uix.boxlayout import BoxLayout from kivy.uix.dropdown import DropDown from kivy import properties from cagou import G +from cagou.core.common import ActionIcon class HeaderWidgetChoice(ButtonBehavior, BoxLayout): @@ -36,7 +36,7 @@ self.bind(on_release=lambda btn: cagou_widget.switchWidget(plugin_info)) -class HeaderWidgetCurrent(ButtonBehavior, Image): +class HeaderWidgetCurrent(ButtonBehavior, ActionIcon): pass