comparison cagou/core/cagou_widget.py @ 158:976f22cb3ecc

core (cagou widget): return parent value in on_touch_down
author Goffi <goffi@goffi.org>
date Sat, 28 Apr 2018 08:57:51 +0200
parents cd99f70ea592
children 60b2b2bad747
comparison
equal deleted inserted replaced
157:e1f6dab40eed 158:976f22cb3ecc
73 return 73 return
74 74
75 def on_touch_down(self, touch): 75 def on_touch_down(self, touch):
76 if self.collide_point(*touch.pos): 76 if self.collide_point(*touch.pos):
77 G.host.selected_widget = self 77 G.host.selected_widget = self
78 super(CagouWidget, self).on_touch_down(touch) 78 return super(CagouWidget, self).on_touch_down(touch)
79 79
80 def headerInputAddExtra(self, widget): 80 def headerInputAddExtra(self, widget):
81 """add a widget on the right of header input""" 81 """add a widget on the right of header input"""
82 self.header_box.add_widget(widget) 82 self.header_box.add_widget(widget)