code: def event(self, name):
          
          events = self.events()
          if name not in events:
              events[name] = Event(name, self, 0)
          return events[name]
docs: Returns the :class:`Event` at ``name``.
  
          If no event is registered for ``name`` creates a new :class:`Event`
          object and returns it.