code: def update(self, pbar, width):
          'Updates the progress bar and its subcomponents'
  
          left, marker, right = (format_updatable(i, pbar) for i in
                                 (self.left, self.marker, self.right))
  
          width -= len(left) + len(right)
          # Marker must *always* have length of 1
          marker *= int(pbar.currval / pbar.maxval * width)
  
          if self.fill_left:
              return '%s%s%s' % (left, marker.ljust(width, self.fill), right)
          else:
              return '%s%s%s' % (left, marker.rjust(width, self.fill), rightf update(self, pbar, width):
          'Updates the progress bar and its subcomponents'
  
          left, marker, right = (format_updatable(i, pbar) for i in
                                 (self.left, self.marker, self.right))
  
          width -= len(left) + len(right)
          # Marker must *always* have length of 1
          marker *= int(pbar.currval / pbar.maxval * width)
  
          if self.fill_left:
              return '%s%s%s' % (left, marker.ljust(width, self.fill), right)
          else:
              return '%s%s%s' % (left, marker.rjust(width, self.fill), right)
docs: Updates the progress bar and its subcomponents