使用KivyMD python在Scrollview中列出字典清单

问题描述 投票:0回答:1

给定一个包含未指定数量的字典的列表。

[ 
{Key11: Value11, Key21: Value21, Key31: Value31, Key41: Value41, Key51: Value51},
{Key12: Value12, Key22: Value22, Key32: Value32, Key42: Value42, Key52: Value52},
{Key13: Value13, Key23: Value23, Key33: Value33, Key43: Value43, Key53: Value53},
.
.
.
{Key1n: Value1n, Key2n: Value2n, Key3n: Value3n, Key4n: Value4n, Key5n: Value5n}
]

在Kivy ScrollView中,什么是最好的表现方式?

enter image description here

到目前为止,我看到的唯一的选择是把所有的字典都改成list,然后使用MDlist。但这很快就会变得很乱。

请大家帮忙。

python dictionary listview kivy scrollview
1个回答
0
投票

回收视图 可能就是你想要的。

© www.soinside.com 2019 - 2024. All rights reserved.