Creating an exit section from the program #4880
saeedrahgooy
started this conversation in
Ideas
Replies: 1 comment
-
Does the below help you? If not, what is the advantage of a specific control, over say, the below approach using a control of choice connected to an on_click? import flet as ft
def main(page: ft.Page):
def click_action(e):
page.window_close()
but1 = ft.ElevatedButton(text="Exit", on_click=click_action)
page.add(but1)
page.update()
if __name__ == "__main__":
ft.app(target=main) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Please create a control to exit the Flat application.
Beta Was this translation helpful? Give feedback.
All reactions