def CopyAttributes(newArt, oldArt):
    """
    Copies pens, brushes, colours and fonts from the old tab art to the new one.

    :param `newArt`: the new instance of :class:`~wx.lib.agw.aui.tabart.AuiDefaultTabArt`;
    :param `oldArt`: the old instance of :class:`~wx.lib.agw.aui.tabart.AuiDefaultTabArt`.
    """
    attrs = dir(oldArt)
    for attr in attrs:
        if attr.startswith('_') and (attr.endswith('_colour') or attr.
            endswith('_font') or attr.endswith('_font') or attr.endswith(
            '_brush') or attr.endswith('Pen') or attr.endswith('_pen')):
            setattr(newArt, attr, getattr(oldArt, attr))
    return newArt
