Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game never fully renders when pyperclip module is present (looking for method to copy text to clipboard) #78

Open
pcbills opened this issue Mar 15, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@pcbills
Copy link

pcbills commented Mar 15, 2023

I'm trying to paste text to the clipboard and keep running into challenges. I tried using pygame.SCRAP_TEXT and it worked outside the main "while" loop for my game, but never inside, so I couldn't put specific variable data from the game into the clipboard.

Then I tried using pyperclip and when exporting to HTML with pygbag, when I tried to run in localhost I just got a black screen and my game never fully rendered.

Is there a way to work with pyperclip? Or another solution for copying text from inside the game to the clipboard?

@pmp-p pmp-p added the enhancement New feature or request label Mar 15, 2023
@pmp-p
Copy link
Member

pmp-p commented Mar 15, 2023

Browsers have a clipboard api
https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API

It should be possible to add support to pygame-ce or to a clipboard module.

@pmp-p pmp-p added the help wanted Extra attention is needed label Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants