from tkinter import *
root = Tk()
root.title('First stage')
root.geometry('600x400')
Button(root, text = '1', width = 5, height = 3, bg = 'blue', fg = 'red', font = 'arial 14').place(x = 70, y = 32)
Label(text = 'Hallo', bg = 'yellow', fg = 'orange').place(x = 80, y = 10)
searching = Text(root, height = 4, width = 35, font = 'Arial 10').place(x = 90, y = 30)
searching.insert(1.0, 'It is good!\n')
root.mainloop()
Error:
Traceback (most recent call last):
File "C:/Users/Владелец/Desktop/програмирование/Tkinter.py", line 8, in <module>
searching.insert(1.0, 'It is good!\n')
AttributeError: 'NoneType' object has no attribute 'insert'