def activate(self) -> Self:
        """Activate the navigation pane.

        Returns:
            Self.
        """
        assert self.parent is not None
        if self.id is not None and isinstance(self.parent.parent, TabbedContent):
            self.parent.parent.active = self.id
        return self
Activate the navigation pane.

        Returns:
            Self.
        
frogmouth/widgets/navigation_panes/navigation_pane.py