tkinter/py2app创建的应用程序在首次启动时不显示窗口 [英] tkinter/py2app created application doesn't show window on initial launch

查看:226
本文介绍了tkinter/py2app创建的应用程序在首次启动时不显示窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个问题,即启动由Tkinter创建并由py2app打包的python应用程序不会立即显示应用程序窗口的问题.在启动后显示窗口的唯一方法是单击扩展坞中的应用程序图标.

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.

这家伙正在使用applescript自动执行以下操作:在启动时单击该应用程序,但正如他所说,我同意,这并不理想.

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

推荐答案

经过大量研究后,看来这是由于在py2app setup.py文件中将'argv_emulation'选项设置为True的结果.

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.

这篇关于tkinter/py2app创建的应用程序在首次启动时不显示窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆