I have some .kv that I'm frequently changing, which has multiple identical sections (but with different ids). Eg:
GridLayout:
cols: 1
Button:
id: button1
text: 'Button 1'
on_press: app.buttonpressed(1)
Button:
id: button2
text: 'Button 2'
on_press: app.buttonpressed(2)
Button:
id: button3
text: 'Button 3'
on_press: app.buttonpressed(3)
...and so on. Is there a way of defining the button once and reusing it? Obviously I could do this in python, ie without using .kv but I want to keep everything in .kv