Mercurial > libervia-desktop-kivy
diff 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 |
line wrap: on
line diff
--- a/cagou/core/cagou_widget.py Mon Mar 11 08:39:43 2019 +0100 +++ b/cagou/core/cagou_widget.py Mon Mar 11 08:39:43 2019 +0100 @@ -89,3 +89,11 @@ def headerInputAddExtra(self, widget): """add a widget on the right of header input""" self.header_box.add_widget(widget) + + def onVisible(self): + pass + # log.debug(u"{self} is visible".format(self=self)) + + def onNotVisible(self): + pass + # log.debug(u"{self} is not visible anymore".format(self=self))