code: def bind_events(self, events):
          '''Register all known events found in ``events`` key-valued parameters.
          '''
          evs = self._events
          if evs and events:
              for event in evs.values():
                  if event.name in events:
                      event.bind(events[event.name]f bind_events(self, events):
          '''Register all known events found in ``events`` key-valued parameters.
          '''
          evs = self._events
          if evs and events:
              for event in evs.values():
                  if event.name in events:
                      event.bind(events[event.name])
docs: Register all known events found in ``events`` key-valued parameters.