#NEWLINE# def update( self , pbar , width ) : #NEWLINE# #INDENT# percent = pbar . percentage ( ) #NEWLINE# cwidth = ( ( width - len ( self . left ) ) - len ( self . right ) ) #NEWLINE# marked_width = int ( ( ( percent * cwidth ) / 100 ) ) #NEWLINE# m = self . _format_marker ( pbar ) #NEWLINE# bar = ( ( self . left + ( m * marked_width ) . ljust ( cwidth ) ) + self . right ) #NEWLINE# return bar