#NEWLINE# def _write_a_grad_fill( self , gradient ) : #NEWLINE# #INDENT# attributes = [ ( 'flip' , 'none' ) , ( 'rotWithShape' , '1' ) ] #NEWLINE# if ( gradient [ 'type' ] == 'linear' ) : #NEWLINE# #INDENT# attributes = [ ] #NEWLINE# #UNINDENT# self . _xml_start_tag ( 'a:gradFill' , attributes ) #NEWLINE# self . _write_a_gs_lst ( gradient ) #NEWLINE# if ( gradient [ 'type' ] == 'linear' ) : #NEWLINE# #INDENT# self . _write_a_lin ( gradient [ 'angle' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _write_a_path ( gradient [ 'type' ] ) #NEWLINE# self . _write_a_tile_rect ( gradient [ 'type' ] ) #NEWLINE# #UNINDENT# self . _xml_end_tag ( 'a:gradFill' )