[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: Fwd: [pygame] Is there an InputBox function in pygame/python?



D. Hartley wrote:

It gave me an error (@ Daniel's solution): global name upper not defined...?


either put

<code>
from string import upper
</code>

at the top of your program or just change

newchar = upper(newchar)

to

newchar = newchar.upper()