resp = get_lessons().json()thanks for your reply :)
for l in resp['lessons']:
self.add_widget(
Button(text=l['title'])
)
Without knowing where you are doing this, that looks fine. You could put that in a list comprehension in kv, something like:
on_enter: [self.add_widget(Button(text=l['title'])) for get_lessons().json()['lessons']]
But really, it's simpler in Python. kv is great for layouts, but you really you don't need to do everything in kv...:-)