#NEWLINE# @ width . setter #NEWLINE# def width( self , w ) : #NEWLINE# #INDENT# if ( self . resize_proportional and w ) : #NEWLINE# #INDENT# ratio = ( self . _height / self . _width ) #NEWLINE# self . _height = round ( ( ratio * w ) ) #NEWLINE# #UNINDENT# self . _width = w