I\'m using Python 2 with Tkinter
and PyObjC
, and then I\'m using py2app
.
The program is working fine, but the window starts a
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):
import os
os.system('''/usr/bin/osascript -e 'tell app "Finder" to set frontmost of process "Python" to true' ''')
Maybe surround that with something like
import platform
if "Darwin" in platform.system():
# apply fix