Skip to content

How to add more unique buttons in app? #1689

Closed Answered by ndonkoHenri
Davidm16 asked this question in Q&A
Discussion options

You must be logged in to vote

You can do this:

    for i in range(10):
        r.controls.append(ft.ElevatedButton(i, data=i, on_click=lambda e: pruebas(e.control.data)))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Davidm16
Comment options

Answer selected by Davidm16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
2 participants