Closed yst-one closed 4 months ago
11
import flet as ft
def main(page: ft.Page): page.title = "my blibli app"
#page.add(ft.Text("Hello, World!"))
ft.app(main) Do not comment #page.add(ft.Text("Hello, World!")) normal
111
Windows
win11
22.1
I'm not sure / I don't know
s
Hi, you need to update the page to change the title
def main(page:ft.Page): page.title = "my blibli app" page.update() if __name__ == "__main__": ft.app(target=main)
will work
Duplicate Check
Describe the bug
11
Code
import flet as ft
def main(page: ft.Page): page.title = "my blibli app"
ft.app(main) Do not comment #page.add(ft.Text("Hello, World!")) normal
To reproduce
111
Expected behavior
111
Screenshots
Operating System
Windows
Operating system details
win11
Flet version
22.1
Regression
I'm not sure / I don't know
Suggestions
s
Additional details
s