我已经在薄荷中下载了IDLE,由于某些原因我无法保存。我收到了这个错误:
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1540, in __call__
return self.func(*args)
File "/usr/lib/python2.7/idlelib/EditorWindow.py", line 1002, in close
reply = self.maybesave()
File "/usr/lib/python2.7/idlelib/EditorWindow.py", line 999, in maybesave
return self.io.maybesave()
File "/usr/lib/python2.7/idlelib/IOBinding.py", line 331, in maybesave
self.save(None)
File "/usr/lib/python2.7/idlelib/IOBinding.py", line 345, in save
if self.writefile(self.filename):
File "/usr/lib/python2.7/idlelib/IOBinding.py", line 378, in writefile
chars = self.encode(self.text.get("1.0", "end-1c"))
File "/usr/lib/python2.7/idlelib/IOBinding.py", line 450, in encode
dialog = EncodingMessage(self.editwin.top, enc)
File "/usr/lib/python2.7/idlelib/IOBinding.py", line 76, in __init__
self.root = top = Toplevel(master)
NameError: global name 'Toplevel' is not defined
发生了什么事? IDLE似乎很棒,但没有保存它无用=(
更新:由于薄荷更新,IDLE现在正常保存......(我想是这样......因为我还在使用Python 2.7.12)