I'm trying to draw a text box on the screen which I can use to display variable data. I've got:
Code: Select all
import tkinter
from tkinter import * (not sure why I need both these lines ...)
.
.
window=tkinter.Tk()
.
.
T=Text(window, height=2, width=20).grid(ow=6, column=6)
T.insert(END,"Hello")
However, at the very last line I get an error: 'NoneType' object has no attribute 'insert'.
Anyone know what's going on?
Thanks...