How to make WindowDragArea dismiss "maximize" event #968
Unanswered
birdcagedout
asked this question in
Q&A
Replies: 2 comments
-
Pesquise na documentação, e eles tem um exemplo. import flet as ft def main(page: ft.Page):
ft.app(target=main) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i'm making a flet app with fixed size of width and height of window.
so i disabled page.resizable and page.window_maximizable to False
page.window_width = 360
page.window_height = 400
page.window_resizable = False
page.window_maximizable = False
and i want to hide the title bar and make my custom title baron the top
so i hid the title bar and buttons as follows:
page.window_title_bar_hidden = True
page.window_title_bar_buttons_hidden = True
but when i created and added my WindowDragArea control to page on the top as a custom title bar,
it doesnt stop the window maximize when double-clicking on it.
what i tried is to define a custom window event handler to steal the maximize event to dismiss it.
but it doesnt work.
def win_event(e: ft.ControlEvent):
if e.data == "maximize":
return
page.on_window_event = on_window_event
is there any way to cutomize WindowDragArea control? or at least stop it from maximize the window.
would anyone know how, let me know please. i appreciate it.
Beta Was this translation helpful? Give feedback.
All reactions