def UpdateProgressBar(self, value, disable_animation=False):
    pb = self.foot_panel.progress_bar
    if value < 0:
      pb.Pulse()
    else:
      value = min(int(value), pb.GetRange())
      if pb.GetValue() != value:
        # Windows 7 progress bar animation hack
        # http://stackoverflow.com/questions/5332616/disabling-net-progressbar-animation-when-changing-value
        if disable_animation and sys.platform.startswith("win"):
          if pb.GetRange() == value:
            pb.SetValue(value)
            pb.SetValue(1-value)
          else:
            pb.SetValue(value+1)
        pb.SetValue(value)
dataset/ETHPy150Open chriskiehl/Gooey/gooey/gui/windows/base_window.py/BaseWindow.UpdateProgressBar/swapped operands of `-`