From 3d56ffe5e982a618c29a6cfa1595e35f51883c1a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 20 Nov 2020 22:29:29 +0800 Subject: [PATCH] bugfix --- kivyblocks/blocks.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kivyblocks/blocks.py b/kivyblocks/blocks.py index 3ae6bb8..f51f28b 100755 --- a/kivyblocks/blocks.py +++ b/kivyblocks/blocks.py @@ -305,12 +305,11 @@ class Blocks(EventDispatcher): def build_rest(self, widget,desc,t=None): self.subwidget_total = len(desc.get('subwidgets',[])) - self.subwidgets = None * self.subwidget_total + self.subwidgets = [ None for i in range(self.subwidget_total)] def doit(params,o,w): desc = params['desc'] widget = params['widget'] self.subwidgets[params['pos']] = w - self.subwidget_cnt += 1 if None not in self.subwidgets: for w in self.subwidgets: widget.add_widget(w) @@ -319,8 +318,6 @@ class Blocks(EventDispatcher): self.buildBind(widget,kw) def doerr(o,e): - print('doerr() called' ,self.subwidget_cnt,'-----') - self.subwidget_cnt += 1 raise e pos = 0