clipboard.py

Small cross-platform clipboard helpers backed by pygame.scrap.

Global Functions

def _ensure_scrap() -> bool

No documentation

def copy_text(text: str) -> bool

Copy *text* to the platform clipboard; return False on backend failure.

def paste_text() -> str

Return clipboard text, or an empty string when unavailable/empty.

Back to Utils Module