comparison src/cagou/core/cagou_widget.py @ 51:3f8599d9a766

core: menus first draft: - menus are handled. Global menus are shown above notification for the moment, but may be displayed differently depending on plateform (e.g. using a button on mobile plateforms) - menu are displayed after profile is connected - backends menus are displayed but not working yet - help/about menu has been added.
author Goffi <goffi@goffi.org>
date Sun, 11 Sep 2016 12:15:41 +0200
parents 9f45098289cc
children 953ddf817b8a
comparison
equal deleted inserted replaced
50:c45d6e9ec731 51:3f8599d9a766
65 new_widget = factory(plugin_info, None, iter(G.host.profiles)) 65 new_widget = factory(plugin_info, None, iter(G.host.profiles))
66 G.host.switchWidget(self, new_widget) 66 G.host.switchWidget(self, new_widget)
67 67
68 def onHeaderInput(self): 68 def onHeaderInput(self):
69 log.info(u"header input text entered") 69 log.info(u"header input text entered")
70
71 def on_touch_down(self, touch):
72 if self.collide_point(*touch.pos):
73 G.host.selected_widget = self
74 super(CagouWidget, self).on_touch_down(touch)
75