I don't know the answer.
However, this thread from about 6 years ago has a reply from PyTom that suggests using
You must be registered to see the links
.
You must be registered to see the links
This from a year later gives a specific example (though that is TO the clipboard).
You must be registered to see the links
I guess a custom
You must be registered to see the links
with both a text input box and a
You must be registered to see the links
/
You must be registered to see the links
with "[PASTE]" on it would suit your needs.
Perhaps use
if pygame.scrap.contains(pygame.SCRAP_TEXT):
to decide whether the enable/disable the "[PASTE]" button, then use
pygame.scrap.get(pygame.SCRAP_TEXT)
to pull the text into a variable as the button's
action()
.
Alternatively, you could use a keybind for paste... just keep in mind that [CTRL] is bound by default to skipping dialogue... and messing with that will seriously piss off a significant majority of your players. So [CTRL+V] is probably off the table.
That second example specific mentions encoding the text as UTF-8. Though that is probably only required when putting data onto the clipboard rather than reading it.