window icon

Kreso

11-07-2008 11:01:16

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

chpod

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 setup.py I am using:
from distutils.core import setup
import py2exe

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