|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 Twilight6 于 2020-5-31 11:30 编辑
RT,这是怎么一回事?代码如下:
- from tkinter import *
- root = Tk()
- text = Text(root,state='DISABLED')
- text.grid()
- mainloop()
复制代码
报错内容:
Traceback (most recent call last):
File "M:/Python data/My Project/55.py", line 5, in <module>
text = Text(root,state='DISABLED')
File "X:\Python 3.8.2\lib\tkinter\__init__.py", line 3554, in __init__
Widget.__init__(self, master, 'text', cnf, kw)
File "X:\Python 3.8.2\lib\tkinter\__init__.py", line 2567, in __init__
self.tk.call(
_tkinter.TclError: bad state "DISABLED": must be disabled or normal
在线等大佬,我百度半天找不到这个错误的解决方案
|
|