This commit is contained in:
Zengtudor 2025-03-02 14:30:01 +08:00
parent 92498c449d
commit 19589fb0d0
2 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
from cx_Freeze import setup, Executable from cx_Freeze import setup, Executable
# 添加你的脚本名称和其他配置 # 添加你的脚本名称和其他配置
executables = [Executable("main.py"),Executable("show_avatar.py")] executables = [Executable("main.py"),Executable("show_avatar.py",base="Win32GUI")]
setup( setup(
name="HeadBallGame", name="HeadBallGame",

View File

@ -72,5 +72,7 @@ def create_image_viewer(folder_path):
root.mainloop() root.mainloop()
# 使用示例: # 使用示例:
if not os.path.exists("faces"):
os.makedirs("faces")
folder_path = "faces" # 图像文件夹路径 folder_path = "faces" # 图像文件夹路径
create_image_viewer(folder_path) create_image_viewer(folder_path)