Sonkun/python-sfml2 — pull request #5 by aspidites (2012-06-17 05:00:43+00:00)
Title: Event mods

I've updated the event API to be more pythonic. While you can still do this:

for event in window.events;
if type(event) == sf.CloseEvent
...
You can now do this instead:

for event in window.events:
if event == sf.CloseEvent:
....

I've also updated the documentation and unit tests. BTW, the tests fail (even yours in master branch), so I'll be working on correcting that in another branch, as well as yet another branch that makes running the tests easier.