[英]After converting python script to exe the meesage box showing as old version
I created a script using python and tkinter, and I made the window pop up messagebox and its looking great and modern but from some reason after I'm converting the script to.exe using cx_freeze the message boxes shows as the old version of tkinter message box. I created a script using python and tkinter, and I made the window pop up messagebox and its looking great and modern but from some reason after I'm converting the script to.exe using cx_freeze the message boxes shows as the old version of tkinter message盒子。
Here is an example:这是一个例子: Left - before converting to exe, right - after.左 - 转换为 exe 之前,右 - 之后。
Here is my setup.py:这是我的 setup.py:
from cx_Freeze import setup, Excutable
base = "Win32GUI"
executable = [Executable("project.py", base=base, icon='icon.ico')]
packages = ["idna", "math", "pandas", "tkinter", "os", "openpyxl"]
options = {
'build_exe': {
'packages': packages,
'include_files': ['icon.ico']
},
}
setup(
name = "my_name",
options = options,
version = "1.0.0",
description = "des"
executables = executables
)
Use pyinstaller instead in the commandline: pip install pyinsyaller pyinstaller --onefile pythonScriptName.py在命令行中使用 pyinstaller 代替: pip install pyinsyaller pyinstaller --onefile pythonScriptName.py
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.