Here is a simple way to place text in a window. There is no provision made to interact with the text.
Execute the program shown in the usual way.
# text_in_window_1.py #>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> from Tkinter import * root = Tk() root.title("Text in a window") text_on_window = Text(root) text_on_window.grid(row=0, column=0) for i in range(20): text_on_window.insert(END, "Fill an area with some text: line %d " % i) root.mainloop()
18.191.147.77