Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tkinter/py2app created application doesn't show window on initial launch

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.

like image 742
vpaterno Avatar asked Oct 20 '12 20:10

vpaterno


1 Answers

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.

like image 56
vpaterno Avatar answered Nov 11 '22 13:11

vpaterno