Skip to content
Advertisement

Python, Kivy: How to copy to clipboard on the click of a button?

I would like to copy a text to the clipboard with the click of a button. Example code:

.py

JavaScript

.kv

JavaScript

There is more of my code, but I decided to remove it because that would be off-topic. Should you need the rest of my code, feel free to tell me so.

Help is appreciated!!

Advertisement

Answer

You didn’t explain what is your problem but you have all in documentation: Clipboard

JavaScript

And this works for me on Linux.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement