This commit is contained in:
yumoqing 2021-01-23 03:49:32 +08:00
parent a40113c5d6
commit b9c975ef48
2 changed files with 2 additions and 2 deletions

View File

@ -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')

View File

@ -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