Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tk_enable_text_copy.py
- from Tkinter import *
- root = Tk()
- T = Text(root, height=2, width=30, bg='lightgrey', relief='flat')
- T.insert(END, "Just a text Widget\nin two lines\n")
- T.config(state=DISABLED) # forbid text edition
- T.pack()
- mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement