Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python textbox

from Tkinter import *

root = Tk()
T = Text(root, height=2, width=30)
T.pack()
quote = """HAMLET: To be, or not to be--that is the question:
Whether 'tis nobler in the mind to suffer
The slings and arrows of outrageous fortune
Or to take arms against a sea of troubles
And by opposing end them. To die, to sleep--
No more--and by a sleep to say we end
The heartache, and the thousand natural shocks
That flesh is heir to. 'Tis a consummation
Devoutly to be wished."""
T.insert(END, quote)
mainloop()
Comment

PREVIOUS NEXT
Code Example
Python :: python getting class name 
Python :: multiple functions tkinter 
Python :: change python version ubuntu 
Python :: reverse python dict 
Python :: pandas add two string columns 
Python :: show image python 
Python :: value_count pandas change column name 
Python :: read a file and split the words python 
Python :: Write a python program to find the most frequent word in text file 
Python :: python get name of function 
Python :: add dir to path python 
Python :: sort list of numbers python 
Python :: how to find most repeated word in a string in python 
Python :: How to find xpath by contained text 
Python :: pi in python math 
Python :: create 3x3 numpy array 
Python :: python falsy values 
Python :: finding the index of an item in a pandas df 
Python :: how to read unicode in python 
Python :: convert pdf folder to excell pandas 
Python :: raising exceptions in python 
Python :: read json file 
Python :: how to take multiple input in list in python 
Python :: python yaml to dict 
Python :: case in python 
Python :: merge two dict python 3 
Python :: smtplib not sending email 
Python :: pre commit python 
Python :: python chat application 
Python :: flatten nested list 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =