pgzero icon indicating copy to clipboard operation
pgzero copied to clipboard

Add a text input box function

Open aryoda opened this issue 6 years ago • 1 comments

To capture eg. player names a text input box would be helpful.

Using other GUI toolkits like tkinter do not integrate well into pgzero (eg. different fonts, windows positioned outside of the game window...).

Possible implementations (based on self-drawn objects using only PyGame):

https://stackoverflow.com/questions/46390231/how-to-create-a-text-input-box-with-pygame https://github.com/Nearoo/pygame-text-input

aryoda avatar Aug 21 '19 22:08 aryoda

This is a good idea, and generalises to a whole "UI" system.

Nearoo/pygame-text-input looks promising, or a more comprehensive widget framework is Albow: https://pypi.org/project/python3-albow/

lordmauve avatar Aug 29 '19 07:08 lordmauve