window icon


11-07-2008 11:01:16

How can I set an icon for my Python-ogre application?


11-07-2008 18:05:44

I think you can not set an icon to a .py file.

However, using py2exe, you can set an icon to the resulting .exe file.

This is the I am using:
from distutils.core import setup
import py2exe

console = [
"script": "", ### Main Python script
"icon_resources": [(0, "icon.ico")] ### Icon to embed into the PE file.