mirror of https://github.com/kivy/kivy.git
core:clipboard_pygame is able to paste unicode text
This commit is contained in:
parent
6a4d6ebf98
commit
273bc29e59
|
@ -29,7 +29,7 @@ class ClipboardPygame(ClipboardBase):
|
||||||
|
|
||||||
def get(self, mimetype='text/plain'):
|
def get(self, mimetype='text/plain'):
|
||||||
self.init()
|
self.init()
|
||||||
return pygame.scrap.get(mimetype)
|
return pygame.scrap.get(mimetype).encode('utf-8')
|
||||||
|
|
||||||
def put(self, data, mimetype='text/plain'):
|
def put(self, data, mimetype='text/plain'):
|
||||||
self.init()
|
self.init()
|
||||||
|
|
Loading…
Reference in New Issue