I am using pyqt, the icon is being added.
icon.addPixmap(QtGui.QPixmap(_fromUtf8("favicon.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off) MainWindow.setWindowIcon(icon)
In setup.py for py2exe, I am trying to add an icon to resources.
from distutils.core import setup import py2exe setup( console=[{ "script" : "manage.py", "icon_resources": [(1, "favicon.ico")] }], options={ "py2exe" : {"includes" : ["sip",]} } )
When I run my program from the IDE as a python script, I see my icon. When I create an exe program with py2exe, my program works well, but the icon disappears.
source share