【发布时间】:2014-06-21 14:48:29
【问题描述】:
我无法使用 py2exe 将我的 python Tkinter GUI 文件打包成 .exe 可执行文件。当我通过命令提示符完成构建应用程序并打开转换后的 .exe 应用程序时,出现错误:
Traceback(most recent call last):
File "Gui.py", line 15, in <module>
File "Tkinter.pyc", line 1624, in wm_iconbitmap
_tkinter.TclError: bitmap "TSicon.ico" not defined
如何让 py2exe 能够使用我放入 Tkinter Python 文件的图像并成功地将我的 python 文件转换为 .exe 可执行文件。
【问题讨论】:
-
这让我想知道,编译后的-to-exe-python脚本能否像未编译的那样访问外部文件?
标签: python user-interface tkinter py2exe