I was just wondering if it's possible to change the program icon for a cx_Freeze script, I've looked around but I couldn't find anything.
19605 次
1 に答える
25
次のように追加するだけicon="icon.ico"
です。Executable()
from cx_Freeze import setup, Executable
target = Executable(
script="your_program.py",
base="Win32GUI",
compress=False,
copyDependentFiles=True,
appendScriptToExe=True,
appendScriptToLibrary=False,
icon="icon.ico"
)
setup(
name="name",
version="1.0",
description="the description",
author="the author",
options={"build_exe": options},
executables=[target]
)
于 2015-03-08T19:16:53.247 に答える