Here is example ...
# one look at the Tkinter Text widget
# use ctrl+c to copy, ctrl+x to cut selected text,
# ctrl+v to paste, and ctrl+/ to select all
# text area can be scrolled with mouse wheel
import Tkinter as tk
root = tk.Tk()
# create the text widget
# width=width in chars, height=lines of text
text = tk.Text(root, width=50, height=5, wrap='none', bg='yellow')
text.pack()
abc = "hello world"
# show result in text widget
text.insert('insert', abc)
# start cursor in the text widget
text.focus()
root.mainloop()
bumsfeld
Nearly a Posting Virtuoso
1,445 posts since Jul 2005
Reputation Points: 404
Solved Threads: 184