comparison src/cagou/core/cagou_widget.py @ 29:8b5827c43155

notes first draft: Implementation of XMLUI notes. There is a new header on top of root widget which display notifications, and notes are shown for a couple of seconds. A blue Cagou head appear when there are notes, and user can display 10 last when clicking on it. This header will probably not be present on platforms such as Android, because there is already a system-wide notifications handler which can be used instead (saving visual space).
author Goffi <goffi@goffi.org>
date Sun, 21 Aug 2016 15:15:25 +0200
parents d09bd16dbbe2
children 9f45098289cc
comparison
equal deleted inserted replaced
28:9f9532eb835f 29:8b5827c43155
33 self.plugin_info = plugin_info 33 self.plugin_info = plugin_info
34 super(HeaderWidgetChoice, self).__init__() 34 super(HeaderWidgetChoice, self).__init__()
35 self.bind(on_release=lambda btn, plugin_info=plugin_info: cagou_widget.switchWidget(plugin_info)) 35 self.bind(on_release=lambda btn, plugin_info=plugin_info: cagou_widget.switchWidget(plugin_info))
36 36
37 37
38
39 class HeaderWidgetCurrent(ButtonBehavior, Image): 38 class HeaderWidgetCurrent(ButtonBehavior, Image):
40 pass 39 pass
41 40
42 41
43 class HeaderWidgetSelector(DropDown): 42 class HeaderWidgetSelector(DropDown):