python textbox

Solutions on MaxInterview for python textbox by the best coders in the world

showing results for - "python textbox"
Alexis
06 Jan 2019
1from Tkinter import *
2
3root = Tk()
4T = Text(root, height=2, width=30)
5T.pack()
6quote = """HAMLET: To be, or not to be--that is the question:
7Whether 'tis nobler in the mind to suffer
8The slings and arrows of outrageous fortune
9Or to take arms against a sea of troubles
10And by opposing end them. To die, to sleep--
11No more--and by a sleep to say we end
12The heartache, and the thousand natural shocks
13That flesh is heir to. 'Tis a consummation
14Devoutly to be wished."""
15T.insert(END, quote)
16mainloop()
17