How do I a add a copy and paste function in a Tkinter text widget?

What you mean? Like clipboard access? Or a internal function?

Copy to variable and write the variable to the widget maybe?

Cheers and Happy coding

Once you highlight the text you can use ctrl/c to copy, ctrl/v to paste and ctrl/x to cut.