Search code examples
pythonflutterpositiondesktop-application

How do I get the position of my python flet window?


I've been working with the python flet package for a while and I'd like to know how to get my window's position. Does anyone know anything?

I googled but found nothing.


Solution

  • I haven't used this package before, but looking at the docs it seems that window_top and window_left on the root Page instance are what you're after (assuming this is a desktop app). See relevant docs here: https://flet.dev/docs/controls/page#window_top.