I want to dyanmically add checkboxes in Kivy languages. I know how to achieve this in python but unaware how to do so in Kivy language. There should be a checkbox for each file in the below list:
from kivy.uix.filechooser import FileSystemLocal
file_system = FileSystemLocal()
file_list=file_system.listdir(App.get_running_app().user_data_dir+'\\') # this returns a list of files in dir
file_list=[x for x in file_list if x[-4:]=='.csv']
How can I loop this Kivy? I assuming there should loop on the right side, since that is python code. But I have no clue how? Any starters can be helpful.
Aucun commentaire:
Enregistrer un commentaire