#NEWLINE# def _parse( self , mod ) : #NEWLINE# #INDENT# self . at = [ float ( x ) for x in sexp . find ( self , 'at' ) [ 1 : ] ] #NEWLINE# self . bounds = [ 0 , 0 , 0 , 0 ] #NEWLINE# for text in sexp . find_all ( mod , 'fp_text' ) : #NEWLINE# #INDENT# if ( text [ 1 ] == 'reference' ) : #NEWLINE# #INDENT# self . ref = text [ 2 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( text [ 1 ] == 'value' ) : #NEWLINE# #INDENT# self . val = text [ 2 ] #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# for graphic in sexp . find_all ( mod , 'fp_line' , 'fp_circle' ) : #NEWLINE# #INDENT# self . _parse_graphic ( graphic ) #NEWLINE# #UNINDENT# for pad in sexp . find_all ( mod , 'pad' ) : #NEWLINE# #INDENT# self . _parse_pad ( pad )