()
return handler
Get a working Clipboard handler object.
Get a working Clipboard handler object.
Get a working Clipboard handler object .
def get_clipboard_handler():
    """Get a working Clipboard handler object."""
    # Pygame.Scrap doesn't work on OSX and crashes on Linux
    if MACOS:
        handler = clipboard.MacClipboard()
    elif WIN32:
        handler = PygameClipboard()
    else:
        handler = clipboard.XClipboard()
    if not handler.ok:
        logging.warning('Clipboard copy and paste not available.')
        handler = clipboard.Clipboard()
    return handler
def get_clipboard_handler ( ) : # Pygame.Scrap doesn't work on OSX and crashes on Linux if MACOS : handler = clipboard . MacClipboard ( ) elif WIN32 : handler = PygameClipboard ( ) else : handler = clipboard . XClipboard ( ) if not handler . ok : logging . warning ( 'Clipboard copy and paste not available.' ) handler = clipboard . Clipboard ( ) return handler