#NEWLINE# def add_chart( self , component ) : #NEWLINE# #INDENT# 'Add a chart to the layout.' #NEWLINE# if ( getattr ( component , 'name' ) != 'Chart' ) : #NEWLINE# #INDENT# raise Exception ( 'Component is not an instance of Chart' ) #NEWLINE# #UNINDENT# self . charts . append ( self )