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

1

6

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.

Catachresis answered 20/10, 2012 at 20:18 Comment(0)
C
18

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.

Catachresis answered 20/10, 2012 at 22:12 Comment(2)
Thanks, saved me some time. FYI, argv_emulation: "# this puts the names of dropped files [onto the OS X app] into sys.argv when starting the app." See wiki.wxpython.org/Optimizing%20for%20Mac%20OS%20X for more infoRosina
Yup, setting argv_emulation to False worked for me.Invincible

© 2022 - 2024 — McMap. All rights reserved.