Get a pane by name, possibly from the cache. Return None if not found.

def get(self, name, default=None, cache=False):
        """
        Get a pane by name, possibly from the cache. Return None if not found.
        """
        if cache == True:
            for pane in self.cache:
                if pane.name == name:
                    return pane
            return default
        for pane in self:
            if pane.name == name:
                return pane
        return default