From b9c975ef485c67512879242c60a8f86ff3dde27f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 23 Jan 2021 03:49:32 +0800 Subject: [PATCH] bugfix --- kivyblocks/dg.py | 2 +- kivyblocks/form.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kivyblocks/dg.py b/kivyblocks/dg.py index a41fe98..d5cea4f 100644 --- a/kivyblocks/dg.py +++ b/kivyblocks/dg.py @@ -379,7 +379,7 @@ class DataGrid(WidgetReady, BGColorBehavior, BoxLayout): def createToolbar(self): if 'toolbar' in self.options.keys(): tb = self.options['toolbar'] - self.toolbar = Toolbar(ancestor=self,**tb) + self.toolbar = Toolbar(**tb) def on_selected(self,row): print("DataGrid():on_selected fire", self.widget_id or 'not widget_id seted') diff --git a/kivyblocks/form.py b/kivyblocks/form.py index c240a83..c97cb20 100644 --- a/kivyblocks/form.py +++ b/kivyblocks/form.py @@ -273,7 +273,7 @@ class Form(BGColorBehavior, BoxLayout): self.register_event_type('on_submit') def init(self): - self.toolbar = Toolbar(ancestor=self,**self.options.get('toolbar',defaultToolbar())) + self.toolbar = Toolbar(**self.options.get('toolbar',defaultToolbar())) self.fsc = VResponsiveLayout( self.inputwidth, self.cols