from tkinter import * w = Tk() Txt = Text(w, height=2, width=30) Txt.pack() Txt.insert(END, 'Welcome to softhunt.net TUTORIAL WEBSITE ') mainloop()
contents = text.get(1.0, END)
w =Text(master, option=value)