I'm using Python 2 with Tkinter
and PyObjC
, and then I'm using py2app
.
The program is working fine, but the window starts as hidden whenever I open the program, so it doesn't appear until I click on the icon on the dock to bring it up.
Is there any way to control this, make the window to be on top of other windows that were open when the application is starting?
Just to clarify, it doesn't have to be on the top for the whole time the application is running. I just need it to be on top of other windows when it starts.
More for mac OS users. Although the above solutions seem to display correctly, the app is still put at "the end of the stack" from the Finder's point of view. As can be seen with the
Cmd+Tab
switcher, or simply observing that python doesn't get the focus.Solution from username fixing it all (again, for mac OS):
Maybe surround that with something like