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

Re: [pygame] Error On Pygame Simple Game



Thanks!
Yes, after sending the question I discovered it all. 

    When I first copied the file from an example it had inserted the letters 3D after an equal sign and that was interesting. I am a blind user and just did not pay attention that the command was wrong. Then did not learn it was wrong until reading down the reference lists of all commands and no such thing existed.

    Then once deleting all the 3D's after the equal sign then I got the indentation errors.

    So I just got through correcting the errors and ran the program and had no errors before reading your replies.

    Now the first question is to find a windows based editor that does the same thing as Emacs for indentation.

    Having a display is not a good start but no errors. So on to trying sounds and see how it goes.

    The next question will be on displaying text inside table cells and such so the screen reader reads it.
NOTE:
    I am running from windows and not Linix so emacs is not running. But indentation is going to be a real pain for my writing because I use a screen reader.

"Samuel Mankins" <waterflight@xxxxxxxxxxxxx> wrote:
> Your indentation was wrong--Python is whitespace sensitive, so you've
> got to be careful. I recommend getting something like Emacs, which is
> free, and "understands" Python, so that pressing tab will cycle through
> the possible indentations. Here's the fixed version:

And if your email client is clobbering the indentations, I've attached my
own re-indentation of the code.

I also use emacs, but it's got a pretty steep learning curve. There are
plenty of other python-friendly editors or IDEs out there that you might
like.

-Dave LeCompte






--------------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.488 / Virus Database: 269.13.27/1020 - Release Date: 9/20/2007 12:07 PM