问题
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? Thanks.
回答1:
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.
来源:https://stackoverflow.com/questions/3499902/pyqt-application-lost-icon-after-packaged-by-cx-freeze