KivyMD: ‘MDDataTable’ Running the .KV to create a widget reports an error
hello i see the py code creation process in the routine works then i declare the widget in the .kv file i get an error

from kivy.lang import Builder
from kivy.factory import Factory
from kivymd.app import MDApp
Builder.load_string('''
<ExampleBanner@Screen>
MDToolbar:
title:'hello'
pos_hint:{'x':.3,'y':.3}
MDDataTable:
pos_hint:{"x": 0.5, "y": 0.5}
size_hint:(0.9, 0.6)
use_pagination:False
column_data:[("No.", dp(30)),("Column 1", dp(40)),("Column 2", dp(40)),("Column 3", dp(40))]
row_data:[("0", "1", "2", "3")]
''')
class Test(MDApp):
def build(self):
return Factory.ExampleBanner()
Test().run()
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 31 (12 by maintainers)
@471657 And read the documentation - https://kivymd.readthedocs.io/en/latest/components/datatables / Does the documentation say that the MDDataTable widget can be used in KV Language?