欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

py2exe 编译ico图标的代码

程序员文章站 2023-10-17 17:45:35
复制代码 代码如下: #setup.py from distutils.core import setup import py2exe setup( # targets t...
复制代码 代码如下:

#setup.py
from distutils.core import setup
import py2exe

setup(
# targets to build
windows = [{"script":"edi_view.py", "icon_resources": [(1, "edi.ico")]} ]
)