2 ответов
+ 1
Solve this by using kivy (Kivy 2.0 only supports Python 2.7 to 3.9 at the moment, so make sure your Python version is compatible. Read more about installing kivy here: Installing Kivy). There is module for this, called Clipboard, and it can paste text from the users Clipboard.
#:import Clipboard kivy.core.clipboard.Clipboard
Button:
on_release:
self.text = Clipboard.paste()
Clipboard.copy('Data')
0
I tried but wouldn’t work because kivy module/package is used for making andriod apps with python code.