parameters: (newArt, oldArt)
return_statement: return newArt
docstring: Copies pens, brushes, colours and fonts from the old tab art to the new one.
  
      :param `newArt`: the new instance of :class:`~lib.agw.aui.tabart.AuiDefaultTabArt`;
      :param `oldArt`: the old instance of :class:`~lib.agw.aui.tabart.AuiDefaultTabArt`.
docstring_summary: Copies pens, brushes, colours and fonts from the old tab art to the new one.
docstring_tokens: Copies pens brushes colours and fonts from the old tab art to the new one .
function: 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:`~lib.agw.aui.tabart.AuiDefaultTabArt`;
      :param `oldArt`: the old instance of :class:`~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
function_tokens: def CopyAttributes ( newArt , oldArt ) : 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