This commit is contained in:
yumoqing 2019-12-22 21:55:02 +08:00
parent 0378528b96
commit 9bdf42aa1b

View File

@ -52,13 +52,7 @@ class PageContainer(FloatLayout):
def previous(self,v=None):
if len(self.pageWidgets) <= 1:
return
w = self.pageWidgets[-1]
if hasattr(w, 'beforeDestroy'):
x = w.beforeDestroy()
if not x:
return
self.pageWidgets = self.pageWidgets[:-1]
del w
self.showLastPage()
def add_widget(self,widget):