Commits

Marcus von Appen  committed cc4312f

- fixed issue #54: text input is correctly converted for the text entry
component

  • Participants
  • Parent commits 799239c

Comments (0)

Files changed (1)

File sdl2/ext/gui.py

 """User interface elements."""
-from .compat import isiterable
+from .compat import isiterable, stringify
 from .ebs import System, World
 from .events import EventHandler
 from .sprite import Sprite
         passed component and passes the event on to that component."""
         if self._activecomponent == component:
             if (component.uitype & TEXTENTRY):
-                component.text += event.text.text
+                component.text += stringify(event.text.text, "utf-8")
             component.events[event.type](event)
 
     def mousemotion(self, component, event):