mercredi 2 juin 2021

How to make button in kivy?

I want to make choose one in all button but use for if-statement. Can anyone help in this code?

BoxLayout:
        orientation:'vertical'
        Button:
            text: 'pizza'
            on_release: root.select()
        Button:
            text: 'pepsi'
            on_release: root.select_1()
        Button:
            text: 'potato chips'
            on_release: root.select_2()
        Button:
            text: 'burger'
            on_release: root.select_3()

Aucun commentaire:

Enregistrer un commentaire