Mercurial > libervia-desktop-kivy
comparison src/cagou/core/cagou_widget.py @ 108:953ddf817b8a
cagou widget: added onHeaderInputComplete method which is called when text is changed, and should be used for completion
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 15 Jan 2017 21:21:25 +0100 |
parents | 3f8599d9a766 |
children | e0c41f209c28 |
comparison
equal
deleted
inserted
replaced
107:f0cf44df8486 | 108:953ddf817b8a |
---|---|
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 | 70 |
71 def onHeaderInputComplete(self, wid, text): | |
72 return | |
73 | |
71 def on_touch_down(self, touch): | 74 def on_touch_down(self, touch): |
72 if self.collide_point(*touch.pos): | 75 if self.collide_point(*touch.pos): |
73 G.host.selected_widget = self | 76 G.host.selected_widget = self |
74 super(CagouWidget, self).on_touch_down(touch) | 77 super(CagouWidget, self).on_touch_down(touch) |
75 |