How to accept text input from a pygame GUI

Pip picture Pip · Jul 21, 2013 · Viewed 10.3k times · Source

I am working on a RPG game using Python and Pygame, and am trying to make a two-part GUI, including a lower part that is like the basic command line, and a top part that will show all graphical "action."

What I need to find out is a way to include both in a pygame window, instead of using a pygame window and terminal window. As well, are there any Pygame GUI toolkits that would be appropriate for this use?

Thanks All!

Answer

The-IT picture The-IT · Jul 22, 2013

May I suggest using ezText instead? It's a cool way to add text inupt bars to pygame. I used it before my self, and It's really easy to use.

http://www.pygame.org/project-EzText-920-.html

(feel free to leave a comment if you want help using it, although everything you need to know is in the example.py that comes with it)