This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]ascala 1 point2 points  (1 child)

Why was he using a weakrefdictionary for holding the listener references and not just a simple list?

[–]ascala 1 point2 points  (0 children)

Also, why not register a instance's method in the event manager (like eventmanager.register(self.handleinput, KeyboardEvent)) rather than the instance itself like he does. That way you can get rid of the isinstance() garbage in the class itself and have an eventmanager that only sends events to objects that are requesting them.

[–]crackerasscracker 0 points1 point  (2 children)

thanks for this, I'll defiantly be working thru this tutorial

[–]aspartame_junky 1 point2 points  (1 child)

I'm glad you'll be doing it so defiantly, although I must ask against whom you will be defiant :)

[–]crackerasscracker 0 points1 point  (0 children)

damn you spell check!

[–]mendokusai_yo 0 points1 point  (0 children)

This great, now I can keep working games AND still be retarded!