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

Broken example temporary resolution proposal #166

Open
non-npc opened this issue Sep 12, 2024 · 2 comments
Open

Broken example temporary resolution proposal #166

non-npc opened this issue Sep 12, 2024 · 2 comments

Comments

@non-npc
Copy link
Contributor

non-npc commented Sep 12, 2024

@ndonkoHenri

Since 'FLET_APP_HIDDEN' does not function, I am unsure of how this example is supposed to function https://github.com/flet-dev/examples/blob/main/python/controls/page/window-hidden-on-start.py

I assume the intention is to have the app hidden for 3 ticks then displayed.

I propose a temporary fix to have a working example, this one uses the WEB_VIEW after 3 ticks the view changes:

`from time import sleep
import flet
from flet import Page, Text

def main(page: Page):
page.window.visible = False

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

sleep(3)

page.window.visible = True
page.update()

flet.app(target=main, view=flet.AppView.WEB_BROWSER)`

Let me know if you approve and I will proceed with the update.
Also, this fixes the deprecation warning about window visiblity.

@ndonkoHenri
Copy link
Collaborator

That's a bug which needs to be resolved: flet-dev/flet#2705

@non-npc
Copy link
Contributor Author

non-npc commented Sep 12, 2024

thank you, i have proposed a solution to the issue you mentioned
flet-dev/flet#2705 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants