summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
760a290)
import types
import pygame
from StringIO import StringIO
import types
import pygame
from StringIO import StringIO
-from events import NOTEON
class _EventDispatcher :
def __init__(self) :
class _EventDispatcher :
def __init__(self) :
events = pygame.event.get()
for event in events :
listeners = self.registry.get(event.type, [])
events = pygame.event.get()
for event in events :
listeners = self.registry.get(event.type, [])
- if event.type == NOTEON :
- print len(listeners)
for listener in listeners :
listener(event)
def reset(self) :
for listener in listeners :
listener(event)
def reset(self) :