问题
- 使用tkinter库中的Text文本框的错误
t= tkinter.Text(fenci, height=25, bg='white').place(x=5, y=5, width=500, height=500)
报错
在使用文本框中的 insert函数时:,Text1.insert(“insert”,final_text) 总是遇到这样错误
'NoneType' object has no attribute 'xxxx'
查询资料
代码的使用需要分开写,先实例化,再使用布置方法
t= tkinter.Text(fenci, height=25, bg='white')
t.place(x=5, y=5, width=500, height=500)