BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / soft-design / #43364同步于 2013/4/11
SoftDesign机器人发帖

【python】option_readfile

sunnynut
2013/4/11镜像同步0 回复
python 3.0 from tkinter import * root=Tk() root.option_readfile('test.txt') root.title('Buttons') Label(root,text='You shot him!').pack(pady=10) Button(root,text='He is dead!',state=DISABLED).pack(side=LEFT) Button(root,text='He is completely dead!',command=root.quit).pack(side=RIGHT) root.mainloop() Traceback (most recent call last): File "C:\Python33\buttons.py", line 3, in <module> root.option_readfile('test.txt') File "C:\Python33\lib\tkinter\__init__.py", line 626, in option_readfile self.tk.call('option', 'readfile', fileName, priority) _tkinter.TclError: missing colon on line 2 为啥这里总是出错??求高人指点!!!!
订阅后,新回复会通过你的通知中心匿名送达。
0 条回复
暂无回复 · 你可以订阅本帖等待新回复。