For a program using pygame, I need an input box. I tried to make one myself, but I need a dict which translates the numbers from pygame to keys. I used to have a dict which included numbers and characters, but I need symbols.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Django __str__ returned non-string (type NoneType)
- Evil ctypes hack in python
Here's a simple text input box example. You can just add the
.unicode
attribute ofKEYDOWN
events to a string.