首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

为cx_Freeze打包后的EXE加下ICON图标

2012-12-25 
为cx_Freeze打包后的EXE加上ICON图标import sys?from cx_Freeze import setup, Executablebase Noneif s

为cx_Freeze打包后的EXE加上ICON图标

import sys ?
from cx_Freeze import setup, Executable

base = None
if sys.platform == "win32":
base = "Win32GUI"

setup(
? name = "MyApp", ?
version = "1.0",
description = "MyApp",
executables = [Executable("MyApp.py",base = "Win32GUI",icon = "MyApp.ico")])

?

icon = "MyApp.ico" 就是生成的EXE文件的图标

热点排行