-
Hello community. I have a small utility using Toga and it's working well but I am having two problems polishing it off.
Thanks in advance for any help or guidance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I can definitely answer the second question and I'm afraid this is not currently possible. As you have discovered, the Regarding the first question, the behaviour here may depend on the platform implementation and at which point during the startup the app gains focus and is ordered to the front. Which platform are you trying this on? |
Beta Was this translation helpful? Give feedback.
I can definitely answer the second question and I'm afraid this is not currently possible. As you have discovered, the
Window.position
property currently does not do anything. PR #1395 will at least change this for macOS when it lands. There is also currently no toga API to query the desktop geometry or to directly center a window, you'll need to fall back to native APIs of each platform at the moment.Regarding the first question, the behaviour here may depend on the platform implementation and at which point during the startup the app gains focus and is ordered to the front. Which platform are you trying this on?