0
回答
roop.option_readfile('optionDB')提示TclError: couldn't open "optionDB": no such file or directory

系统:w7

python版本:python 2.7


代码:

from Tkinter import *

root =Tk()

root.option_readfile('optionDB')

解释器提示:

Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    root.option_readfile('optionDB')
  File "D:\Program Files\python\lib\lib-tk\Tkinter.py", line 613, in option_readfile
    self.tk.call('option', 'readfile', fileName, priority)
TclError: couldn't open "optionDB": no such file or directory

如何解决上述问题,我问度娘,没有找到答案,谢各位大侠!!

举报
Love_Python
发帖于6年前 0回/673阅
顶部