pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Pygame Text Input

Pygame Text Input - 0.1

Bugme Not (bugmenot)

Tags:

Description

Write text in pygame! This small module can be used to write text in pygame. It includes a blinking cursor that can be moved using the left and right arrow key as well as the home and the end button. You can also press any button for a little bit longer to make it re-enter itself many times a second. It is very easy to use, check out github for instructions! In case you are wondering why you should use this module instead of EzText? Because eztext is garbage code. EzText has about a hundred if-statemets that check for input like this: "if K_k in events and K_SHIFT in pygame_pressed: string += "K"". Apart from the fact that this is extremely ugly code, this makes it also only support ONE keyboard - probably the american one. All the others have wrong keys in them. This module here takes the "unicode" attribute provided by pygame events and thus supports ALL letters and character, exactly the way they appear on your keyboard, be it with "Shift" or "Ctrl+Alt" pressed at the same time.

Links

Home Page: https://github.com/NSasquatch/pygame-text-input

Screenshot


click to view original size

Releases

Pygame Text Input - 0.1 - Nov 14, 2016

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

December 16, 2016 8:45pm - Barnaby Jones - nickname: (thetycoon) - 4/5
Excellent. Thank you!
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Jan 31, 2017



Jan 24, 2017

Jan 19, 2017

Jan 18, 2017


Jan 7, 2017

Dec 30, 2016

Dec 8, 2016

Nov 28, 2016

Nov 27, 2016

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)