Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ft.app(main,view=ft.AppView.FLET_APP_HIDDEN) Doesn't work #3223

Open
vitaluska123 opened this issue May 6, 2024 · 3 comments
Open

ft.app(main,view=ft.AppView.FLET_APP_HIDDEN) Doesn't work #3223

vitaluska123 opened this issue May 6, 2024 · 3 comments
Labels
bug: regression A feature that worked correctly doesn't anymore

Comments

@vitaluska123
Copy link

Description

Code example to reproduce the issue:

ft.app(main,view=ft.AppView.FLET_APP_HIDDEN)

Describe the results you received:
the window is visible when i start app (include build and run)

Describe the results you expected:
When programm start window hiden

Additional information you deem important (e.g. issue happens only occasionally):
NONE

Flet version (pip show flet):

Name: flet
Version: 0.22.0
Summary: Flet for Python - easily build interactive multi-platform apps in Python
Home-page:
Author: Appveyor Systems Inc.
Author-email: hello@flet.dev
License: Apache-2.0
Location: C:\Users\Strunder\AppData\Local\Programs\Python\Python312\Lib\site-packages
Requires: cookiecutter, fastapi, flet-runtime, packaging, qrcode, uvicorn, watchdog
Required-by: flet-fastapi

Give your requirements.txt file (don't pip freeze, instead give direct packages):

flet

Operating system:

Additional environment details:
Default (flet create)

@FeodorFitsner
Copy link
Contributor

Thanks!

Could you provide a sample app to reproduce the issue too?

@vitaluska123
Copy link
Author

Thanks!

Could you provide a sample app to reproduce the issue too?

import flet as ft


def main(page: ft.Page):
    page.add(ft.SafeArea(ft.Text("Hello, Flet!")))


ft.app(main,view=ft.AppView.FLET_APP_HIDDEN)

@FeodorFitsner
Copy link
Contributor

This example doesn't work on macOS as well:

from time import sleep

import flet as ft


def main(page: ft.Page):

    page.add(
        ft.Text("Hello!")
    )

    sleep(3)
    page.window_visible = True
    page.update()  

ft.app(target=main, view=ft.AppView.FLET_APP_HIDDEN)

Looks like a bug.

@ndonkoHenri ndonkoHenri added bug: regression A feature that worked correctly doesn't anymore and removed bug Something isn't working labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: regression A feature that worked correctly doesn't anymore
Projects
None yet
Development

No branches or pull requests

3 participants