【发布时间】:2015-11-23 12:11:18
【问题描述】:
我尝试使用 Tkinter 库,但是,我不断收到此消息,我不知道如何解决它。我查看了网络,但没有发现这个特定错误 - 我调用了库像这样:
from Tkinter import *
我得到了这个错误 -
TclError = Tkinter.TclError
AttributeError: 'module' object has no attribute 'TclError'
我不知道我现在能做什么.. 谢谢
完整的追溯:
Traceback (most recent call last):
File "C:/Users/Shoham/Desktop/MathSolvingProject/Solver.py", line 3, in <module>
from Tkinter import *
File "C:\Heights\PortableApps\PortablePython2.7.6.1\App\lib\lib- tk\Tkinter.py", line 41, in <module>
TclError = Tkinter.TclError
AttributeError: 'module' object has no attribute 'TclError'
【问题讨论】:
-
你在使用 PortablePython 吗?
-
@PadraicCunningham 是的,我愿意
-
添加指向
"C:\Heights\PortableApps\PortablePython2.7.6.1\App\lib\lib- tk\Tkinter.py中内容的链接,我觉得它看起来不对 -
@PadraicCunningham “添加链接”是什么意思?
-
复制文件内容到pastebin
标签: python user-interface syntax tkinter portable-python