flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
11.39k stars 445 forks source link

window11 title no show #3470

Closed yst-one closed 4 months ago

yst-one commented 4 months ago

Duplicate Check

Describe the bug

11

Code

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

To reproduce

111

Expected behavior

111

Screenshots

image

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

azhago commented 4 months ago

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

image