开发者

pyqt application lost icon after packaged by cx_freeze [duplicate]

This question already has answers here: Closed 10 years ago.

Possible Duplicate:

Images not showing when running a frozen pyqt app on another computer

I have a pyqt application whose icon is in a resource file. I can see the icon when run the application using python app.py. But after I package the application using cx_freeze, the icon is missing. I can see the compiled resource in the `library.zip' (generated by cx_freeze), but the icon is still missing. Any one can help?开发者_JS百科 Thanks.


I had this problem and I was using an .ico file for the icon. However when I used a .gif file for the icon instead, I got my icon back. Hope this helps.

If not, try not using the icon as a compiled resource, but just a normal file in its directory.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜