def _create_select_window_handler(self, window):
def handler(mouse_event):<EOL><INDENT>if mouse_event.event_type == MouseEventType.MOUSE_DOWN:<EOL><INDENT>self.pymux.arrangement.set_active_window(window)<EOL>self.pymux.invalidate()<EOL><DEDENT>else:<EOL><INDENT>return NotImplemented  <EOL><DEDENT><DEDENT>return handler<EOL>
Return a mouse handler that selects the given window when clicking.