In Tkinter'a text box to paste text from the clipboard?

The question is certainly a simple affair in my lamerstvo.
There is a window.
Code:
window = Tk() 
window.title("Welcome to application") 
window.geometry('400x250') 
lbl = Label(window, text="Hello") 
lbl.grid(column=0, row=0) 
#txt = Entry(window,width=20) 
#txt.grid(column=1, row=0) 

text = Text(window,height=10,width=60)
text.grid(row=11,column=1,columnspan=5)
#text.bind('<Control-c>',copy2clipboard)

btn = Button(window, text="Click!", command=clicked_1) 
btn.grid(column=2, row=0)
btn = Button(window, text="Click!", command=clicked_2) 
btn.grid(column=3, row=0) 
btn = Button(window, text="Click!", command=clicked_3) 
btn.grid(column=4, row=0) 
btn = Button(window, text="Click!", command=clicked_4) 
btn.grid(column=5, row=0) 
window.mainloop()


Everything works as it should.If the text in the field to gain hands.But when you try to cram in that field, in the clipboard - nothing happens.
March 20th 20 at 11:33
1 answer
March 20th 20 at 11:35
I do not quite understand, but there is a library pyperclip which can be using PIP to put it. import it in advance, and then command q = pyperclip.paste() in the variable q we recorded the copied text from the clipboard. Can stick it to the button, like clicked on "Paste from clipboard" ....Try play)
I discovered that inserted properly only with the English layout... - carrie commented on March 20th 20 at 11:38

Find more questions by tags PythonTkinter