(self)
return text.decode('utf-8', 'replace').replace(u'\r\n', u'\n').replace(u'\n', u'\r')
Return unicode text from clipboard.
Return unicode text from clipboard.
Return unicode text from clipboard .
def paste(self):
        """Return unicode text from clipboard."""
        text = sdl2.SDL_GetClipboardText()
        if text is None:
            return u''
        return text.decode('utf-8', 'replace').replace(u'\r\n', u'\n').replace(u'\n', u'\r')
def paste ( self ) : text = sdl2 . SDL_GetClipboardText ( ) if text is None : return u'' return text . decode ( 'utf-8' , 'replace' ) . replace ( u'\r\n' , u'\n' ) . replace ( u'\n' , u'\r' )