Skip to content

[Question]how to find a control with an id? #4442

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

You must be logged in to vote

Example:

import flet as ft


def main(page: ft.Page):
    x = ft.IconButton(ft.Icons.ADD)
    page.add(x)
    print(type(page.get_control(x.uid)))


ft.app(main)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ndonkoHenri
Comment options

You must be logged in to vote
0 replies
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