简体   繁体   English

将 python 脚本转换为 exe 后,消息框显示为旧版本

[英]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:这是一个例子: 左边是现代方式,右边是转换为exe后 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.

相关问题 将 python 脚本转换为 .exe 后,docopt 未显示使用字符串 - docopt not showing usage string after converting python script to .exe 将 python 脚本转换为 EXE 后,为什么 tkinter 顶层的图标没有显示 - After converting a python script to EXE why tkinter toplevel's icon not showing 使用 pyinstaller 将其转换为 exe 后,带有单例的 python 脚本不起作用 - python script with singleton doesn't work after converting it to exe with pyinstaller 将python脚本转换为exe时出错 - Error converting python script to exe 停止 Python exe 脚本转换回来 - Stop Python exe script from converting back 使用 Auto Py 将 Python 脚本转换为 EXE,使用 (Tabula) .JavaNotFoundError 到 EXE - converting Python Script to EXE with (Tabula) .JavaNotFoundError using Auto Py to EXE py安装程序将脚本转换为exe后,如何使python中的脚本在启动时运行 - how to make script in python run at startup after converting it to exe by py installer Python whois 转换为 exe 后失败 - Python whois fails after converting to an exe 显示不停止脚本的Python消息框 - Python message box showing without stopping script py2exe - 将我的 python 脚本转换为 a.EXE 文件后,无法再将其他 Windows 应用程序中的文本复制/粘贴到我的 Python 应用程序 - py2exe - Can no longer Copy/Paste text from other Windows app to my Python app after converting my python script to a .EXE file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM