code: def _setup_bar(self):
          
          bar = u""
          items_cnt = len(PROGRESS_BAR_ITEMS)
          bar_val = float(self._time_left) / self._section_time * self.num_progress_bars
          while bar_val > 0:
              selector = int(bar_val * items_cnt)
              selector = min(selector, items_cnt - 1)
              bar += PROGRESS_BAR_ITEMS[selector]
              bar_val -= 1
  
          bar = bar.ljust(self.num_progress_bars)
          return bar
docs: Setup the process bar.