-
Notifications
You must be signed in to change notification settings - Fork 417
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
No page.on_window_event on close #1626
Comments
I ran the code, and hat the dialog come up. The "close" was printed in the console and clicking on "Yes" closed the app as expected. All this with flet v0.8.2. Try moving to the latest version, then try again. If it persists make a screen recording and send please. |
Thanks @ndonkoHenri for diving into it! UB2204-desk-screen0.mp4 |
Seems like the Problem is OS-related. |
OK - could be. I've reproduced the issue on Debian12/Gnome and Debian12/XFCE also. |
I use Win10. |
I can confirm it works in Win10 with me also. So probably OS-related(?) |
Yup, I think so. |
Is there any updates about this issue, the exact same thing happens to me on windows 11, |
Description
I get no window event on window close, Ubuntu 22.04, flet 0.8.2, python 3.10
Code example to reproduce the issue:
Describe the results you received:
No dialog to confirm closing is shown, no print of "close" as expected from
print(e.data)
Describe the results you expected:
Would expect
e.data = "close"
when closing windowAdditional information you deem important (e.g. issue happens only occasionally):
Flet version (
pip show flet
):Operating system:
Ubuntu 22.04
Additional environment details:
The text was updated successfully, but these errors were encountered: