bugfix
This commit is contained in:
parent
05989c381e
commit
3d56ffe5e9
@ -305,12 +305,11 @@ class Blocks(EventDispatcher):
|
|||||||
|
|
||||||
def build_rest(self, widget,desc,t=None):
|
def build_rest(self, widget,desc,t=None):
|
||||||
self.subwidget_total = len(desc.get('subwidgets',[]))
|
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):
|
def doit(params,o,w):
|
||||||
desc = params['desc']
|
desc = params['desc']
|
||||||
widget = params['widget']
|
widget = params['widget']
|
||||||
self.subwidgets[params['pos']] = w
|
self.subwidgets[params['pos']] = w
|
||||||
self.subwidget_cnt += 1
|
|
||||||
if None not in self.subwidgets:
|
if None not in self.subwidgets:
|
||||||
for w in self.subwidgets:
|
for w in self.subwidgets:
|
||||||
widget.add_widget(w)
|
widget.add_widget(w)
|
||||||
@ -319,8 +318,6 @@ class Blocks(EventDispatcher):
|
|||||||
self.buildBind(widget,kw)
|
self.buildBind(widget,kw)
|
||||||
|
|
||||||
def doerr(o,e):
|
def doerr(o,e):
|
||||||
print('doerr() called' ,self.subwidget_cnt,'-----')
|
|
||||||
self.subwidget_cnt += 1
|
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
pos = 0
|
pos = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user