[英]How do I use my icons when compiling my python program with py2exe?
I don't know what commands to enter into the setup.py file when compiling a python program to use my icons. 在编译python程序以使用我的图标时,我不知道输入setup.py文件的命令。 Can anyone help me?
谁能帮我? Thanks in advance.
提前致谢。
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",
)
I haven't tried this, but here's a link I found: 我没有试过这个,但这是我发现的一个链接:
http://www.py2exe.org/index.cgi/CustomIcons http://www.py2exe.org/index.cgi/CustomIcons
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.