Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x Kivy Check使用json文件中的在行数据创建datatables_Python 3.x_Kivy - Fatal编程技术网

Python 3.x Kivy Check使用json文件中的在行数据创建datatables

Python 3.x Kivy Check使用json文件中的在行数据创建datatables,python-3.x,kivy,Python 3.x,Kivy,你能帮我吗?我试图在datatables的行中添加json文件中的数据,并在左侧为行中的每个数据打勾。这里有代码,但只在列和第一行中添加检查 self.tab_bella = MDDataTable( use_pagination=True, rows_num = 20, size_hint=(0.9, 0.6), check = True, column_data=[

你能帮我吗?我试图在datatables的行中添加json文件中的数据,并在左侧为行中的每个数据打勾。这里有代码,但只在列和第一行中添加检查

self.tab_bella = MDDataTable(

    use_pagination=True,
          rows_num = 20,
            size_hint=(0.9, 0.6),
            check = True,
            column_data=[
                ("", dp(40)),
                ("",dp(40)),
                ("", dp(40)),
                ("", dp(40)),
                ("", dp(40)),
                ("", dp(40)),
                ("", dp(40)),
                ("", dp(40)),
    
            ],
            row_data=[
    
                (
                    [(file.get(str(i))["datacalendario"]) for i in file]
                ),
    
    
    
    
                ],
            )     
    self.root.ids.elimina_classe.add_widget(self.tab_bella)