【问题标题】:How do I get the position of my python flet window?How do I get the position of my python flet window?
【发布时间】:2022-12-02 08:18:22
【问题描述】:
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.
【问题讨论】:
标签:
python
flutter
position
desktop-application
【解决方案1】:
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.