#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# 'This shows how elements are specified' #NEWLINE# name = Component . __str__ ( self ) #NEWLINE# if ( self . width is None ) : #NEWLINE# #INDENT# return name #NEWLINE# #UNINDENT# if ( self . height is None ) : #NEWLINE# #INDENT# return ( name + ( ':%d' % self . width ) ) #NEWLINE# #UNINDENT# return ( self + ( ':%dx%d' % ( self . width , self . height ) ) )