def __init__(self, name=None): self._native_init() EventDispatcher.__init__(self, None) self._parent = None if name is None: self.name = self.__class__.__name__ + ' #' + str(self.id) else: self.name = name self._graphics = None self._scroll_rect = None
def _dispatch_event(self, e): if e.target == None: e.target = self e.currentTarget = self return EventDispatcher.dispatchEvent(self, e)