code: def _AddEvents(cls, Class):
          
          def make_event(event):
              return property(lambda self: self._GetDefaultEventHandler(event),
                               lambda self, Value: self._SetDefaultEventHandler(event, Value))
          for event in dir(Class):
              if not event.startswith('_'):
                  setattr(cls, 'On%s' % event, make_event(event))
                  cls._EventNames.append(event)
docs: Adds events based on the attributes of the given ``...Events`` class.
          
          :Parameters:
            Class : class
              An `...Events` class whose methods define events that may occur in the
              instances of the current class.