Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用py2app创建了一个.app,GUI是用pyqt4制作的,其中一个按钮在ti上有一个图像,但是当我运行应用程序时,图像没有出现,当我在终端上运行它时,它出现了,怎么能我解决这个?
先感谢您
当您启动 python setup.py py2app 时,您可以传递两个额外的参数:
--iconfile path/to/icon.icns --resources path/to/other/required/stuff
使用第一个设置 Dock 和 App 图标,使用第二个将其他所需资源嵌入到 .app 文件夹中,以便在启动应用程序时可用。