-->

tkinter/py2app created application doesn't sho

2019-03-29 13:59发布

问题:

I'm running into an issue where launching a python app created with Tkinter and packaged by py2app doesn't show the application window immediately. The only way I've gotten the window to show after launch is to click on the application icon in the dock.

This guy is using an applescript to auto-click the app on launch but as he states, and I agree, it isn't ideal.

回答1:

After doing some extensive research, it would appear that this is a result of setting the 'argv_emulation' option to True in the, py2app, setup.py file.