I wish button1 to edit Label ‘etykietka’ when clicked, but i don’t know how. Have you got some ideas?
class Zastepstwa (App):
def build(self):
lista=WebOps().getList()
layout = BoxLayout(orientation='vertical')
etykietka = Label(text='aa', font_size=10)
button1 = Button(text='aa')
button1.bind(callback)
layout.add_widget(etykietka)
layout.add_widget(button)
return layout
def callback (instance):
newLabelText='kkk'
#?
you need to pass your label to callback, a nice way to do it is to use the partial function
change callback signature for
then bind the callback like this
that should do it.