From 5d9e86e38ab8cd1db81f8119782d8dc2079ac7e1 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 9 Jan 2020 19:12:14 +0800 Subject: [PATCH] bugfix --- kivyblocks/pagescontainer.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/kivyblocks/pagescontainer.py b/kivyblocks/pagescontainer.py index 88531bf..56ca069 100644 --- a/kivyblocks/pagescontainer.py +++ b/kivyblocks/pagescontainer.py @@ -52,14 +52,9 @@ class PageContainer(FloatLayout): if len(self.pageWidgets) <= 1: return w = self.pageWidgets[-1] - try: - print(' ******* del last widget begin******') - del w - print(' ******* del last widget end ******') - except: - pass self.pageWidgets = self.pageWidgets[:-1] self.showLastPage() + w.__del__() def add_widget(self,widget): self.pageWidgets.append(widget)