Open aryoda opened 5 years ago
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...).
tkinter
pgzero
Possible implementations (based on self-drawn objects using only PyGame):
PyGame
https://stackoverflow.com/questions/46390231/how-to-create-a-text-input-box-with-pygame https://github.com/Nearoo/pygame-text-input
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/
To capture eg. player names a text input box would be helpful.
Using other GUI toolkits like
tkinter
do not integrate well intopgzero
(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