def METHOD_NAME(self, n_retrieved, n_all):
    self.progressBarSet(100 * (n_retrieved / n_all if n_all else 1))  # prevent division by 0
    self.num_all = n_all
    self.num_retrieved = n_retrieved
    self.update_info_label()