#NEWLINE# def set_fill_from_shape( self , shape ) : #NEWLINE# #INDENT# fill = getattr ( shape , 'fill' , False ) #NEWLINE# if fill : #NEWLINE# #INDENT# if ( hasattr ( shape , 'fillcolor' ) and shape . fillcolor ) : #NEWLINE# #INDENT# color = shape . fillcolor #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# color = shape . color #NEWLINE# #UNINDENT# alpha = getattr ( shape , 'alpha' , 1.0 ) #NEWLINE# alpha = getattr ( shape , 'fillalpha' , alpha ) #NEWLINE# self . brush = self . cr . get_brush ( color , alpha = alpha ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . brush = None