Skip to content

Arguments from Event [Question] #1686

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

You must be logged in to vote

Something like this?:

import flet as ft

def main(page: ft.Page):
    def refrescar(my_arg=None):
        print(my_arg)
        # perform your refresh actions

    page.add(ft.IconButton(ft.icons.REFRESH, on_click=lambda _: refrescar(my_arg=123)))

ft.app(target=main)

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