lordmauve / lordmauve/pgzero

Add a text input box function

Open
#197 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
611
Forks
211
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Review the linked Pygame text-input examples and pgzero's existing input behavior, then define an API for capturing player names within the game window. Done means text can be entered using self-drawn Pygame elements without opening a separate GUI window.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.