Mercurial > libervia-desktop-kivy
comparison cagou/core/cagou_widget.py @ 264:3e11b5d923e2
core: call new methods onVisible and onNotVisible when a widget is displayed or hidden + fixed a deletion bug on _removeVisibleWidget
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 11 Mar 2019 08:39:43 +0100 |
parents | a676cb07c1cb |
children | 1b835bcfa663 |
comparison
equal
deleted
inserted
replaced
263:fe540a6dc14d | 264:3e11b5d923e2 |
---|---|
87 return super(CagouWidget, self).on_touch_down(touch) | 87 return super(CagouWidget, self).on_touch_down(touch) |
88 | 88 |
89 def headerInputAddExtra(self, widget): | 89 def headerInputAddExtra(self, widget): |
90 """add a widget on the right of header input""" | 90 """add a widget on the right of header input""" |
91 self.header_box.add_widget(widget) | 91 self.header_box.add_widget(widget) |
92 | |
93 def onVisible(self): | |
94 pass | |
95 # log.debug(u"{self} is visible".format(self=self)) | |
96 | |
97 def onNotVisible(self): | |
98 pass | |
99 # log.debug(u"{self} is not visible anymore".format(self=self)) |