flet icon indicating copy to clipboard operation
flet copied to clipboard

page.window_frameless = False is not working

Open 5P4RK3R opened this issue 1 year ago • 0 comments

Description

I am encountering an issue when trying to implement the code documented in the Flet.dev documentation regarding controlling window frames (referencing the section at https://flet.dev/docs/controls/page/#window_frameless). Specifically, I'm experimenting with the page.window_frameless = True option to unhide the application window frame as described.

However, it appears that this feature is not functioning as expected in recent versions of the Flet library (including but not limited to version 0.20.2).

Code example to reproduce the issue:

from time import sleep

import flet as ft

def main(page: ft.Page): page.window_frameless = True page.add( ft.Text("Hello!") )

sleep(3)
page.window_frameless = False
page.update()  

ft.app(target=main)

Describe the results you received:

The window hides immediately upon program execution and does not get show the frame during that period.

Describe the results you expected:

The program starts with a hidden window and makes it visible in 3 seconds.

Additional information you deem important (e.g. issue happens only occasionally): This feature functions as intended on another computer running Flet version 0.10.

Flet version (pip show flet):

flet 0.20.2 Operating system:

MacOS BigSur

5P4RK3R avatar Mar 04 '24 21:03 5P4RK3R