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