tags:

views:

118

answers:

2

I don't know what commands to enter into the setup.py file when compiling a python program to use my icons. Can anyone help me? Thanks in advance.

+4  A: 

I haven't tried this, but here's a link I found:

http://www.py2exe.org/index.cgi/CustomIcons

Lasse V. Karlsen
+3  A: 
from distutils.core import setup
import py2exe
setup(
        windows=[{"script": 'app.py', "icon_resources": [(1, "icon.ico")]}],
        options={"py2exe":{"unbuffered": True,
                        "optimize": 2,
                        "bundle_files" : 1,
                        "dist_dir": "bin"}},
                        zipfile = "lib.zip", 
)
Kirill Titov