EzText - 1.0
A simple, easy to use library for text input in pygame. Inspired by EzMeNu.
Pygame.org account Comments
killer rin 2011-10-20 19:04:59
Does anyone know if its possible to modify it to support multiple lines via the enter key? Also is it possible to assign the text to a variable to be called later?
ffavela 2015-01-27 02:12:53
Hi, I added some extra functionality (as was suggested). Here is the link: https://github.com/ffavela/ezt...
the cx freeze problem when creating the binaries (my problem), put in
the improvements made by Bryant and the ones suggested by Oliver and
You'll have to put the required font in the same directory as where eztext is.
Lucas Muller 2013-01-31 17:00:00
Just what i needed! Thank you very much, works fine.
Bryant Sell 2013-12-13 20:19:20
Just a little modification so that if you hold the delete key down it will continue to delete the screen so you don't have to keep pressing the delete key. Its primitive but it works. The stuff highlighted in red is what I added. These changes were made in eztext.py.
Bryant Sell 2013-12-13 20:28:04
I also made it so that if you hit return it will store the string in a variable. You would say something like val = txtbx.update(events). The stuff highlighted in red is what I added. These changes were made in eztext.py.
Mikey3011 2014-07-26 14:26:19
The code worked perfectly fine but after switching my computer off and on again, an error message appears when i try to run the program again: " AttributeError: 'module' object has no attribute 'Input' ". Any help??
Oliver 2015-01-01 04:36:09
Is there any way to put multiple text boxes? right now when I type a key, it appears on all of the text boxes
ffavela 2015-01-25 19:26:10
Every time I try to do a cx_Freeze to program with EzText I get a :
"Fatal Python error: (pygame parachute) Segmentation Fault"
Is there a work around?
ffavela 2015-01-25 19:47:04
Never mind, found the solution in: https://stackoverflow.com/ques...
It was the font. In class input I changed the font from none to another one, my option ended up looking like:
self.options= stuff, ['font','pygame.font.Font("Times_New_Roman.ttf", 32)'],stuff
Also, make sure the font is in your path.
Anonymous 2015-09-25 22:53:13
Really good program!
Joseph Clarke 2016-03-08 04:48:44
Can i use it in a non for profit project?
PYBoss 2016-06-07 01:51:32
Does anyone know if there is a simple way to get the typed value? I tried it myself and couldn't figure out how.
Rozza Dozz 2017-08-04 00:23:46.916236How do you get what is in the text box i couldn't figure out how to from the example.py