Mercurial > libervia-desktop-kivy
diff 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 |
line wrap: on
line diff
--- a/src/cagou/core/cagou_widget.py Sat Sep 10 18:01:32 2016 +0200 +++ b/src/cagou/core/cagou_widget.py Sun Sep 11 12:15:41 2016 +0200 @@ -67,3 +67,9 @@ def onHeaderInput(self): log.info(u"header input text entered") + + def on_touch_down(self, touch): + if self.collide_point(*touch.pos): + G.host.selected_widget = self + super(CagouWidget, self).on_touch_down(touch) +