[英]I'm trying to write a code but i got this error
I am trying to figure it out what problem is it.我试图弄清楚它是什么问题。 code
代码
from tkinter import *
compiler = tkinter()
editor = Text()
editor.pack()
compiler.mainloop()
error错误
compiler = tk()
NameError: name 'tk' is not defined```
Write Tk() instead of tk() it will work.写 Tk() 而不是 tk() 它将起作用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.