Skip to content
Advertisement

How to display a simple list and a list with dictionaries in BoxLayout

I can’t figure out how to display a simple list and a list with dictionaries in BoxLayout (class Content), I’m trying to display the “data_name_list” list line by line, and the “data_all_list” list line by line, but only the values by the key “item_name”.

Here is .py file

JavaScript

Here is .kv file

JavaScript

Advertisement

Answer

You can just define a method that does what you want, then call that method using Clock.schedule_once():

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement