def update(self, value):
        """ Update the progress bar to the desired value

        If the value is >= the maximum and the progress bar is not contained
        in another panel the parent window will be closed.

        Parameters
        ----------
        value :
            The progress value to set.
        """

        if self.progress_bar is not None:
            self.progress_bar.update(value)

        if self.max >= value:
            self.close()
dataset/ETHPy150Open enthought/pyface/pyface/i_progress_dialog.py/MProgressDialog.update/swapped operands of `>=`