From 9bdf42aa1b726af56843998654829bb98632943c Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 22 Dec 2019 21:55:02 +0800 Subject: [PATCH] bugfix --- kivyblocks/pagescontainer.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/kivyblocks/pagescontainer.py b/kivyblocks/pagescontainer.py index 69bf9cd..63b2eec 100644 --- a/kivyblocks/pagescontainer.py +++ b/kivyblocks/pagescontainer.py @@ -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):