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

[pygame] [RFC] Decorator-based event trapping.



Hello list,

On [0] I saw that pygame is looking for an event binding approach
similar to that of turtle. Looking up what turtle does, I noticed I
went even a step further using decorators (code in [1], usage in [2]
lines 177, 324ff). Maybe the final solution ideally composes both
these approaches?

cheers!
mar77i

[0] http://www.pygame.org/wiki/todo#Event%20Binding
[1] https://github.com/mar77i/mandelizer/blob/master/input.py
[2] https://github.com/mar77i/mandelizer/blob/master/mandelizer.py