I've got in a bit of trouble while working with tkinter The problem is that there are no methods which can work with widget Text. Here is my code
from tkinter import *
root = Tk()
tex = Text(root, width = 50, height = 10, bd = 2).pack()
tex.get(1.0, END)
root.mainloop()
It returns error:
AttributeError: 'NoneType' object has no attribute 'get'
it makes me mad! and I have such problems with any Text's methods