def create_dialog(self):
        if self.use_ui:
            if self.dialog is None:
                self.dialog = \
                    QtGui.QProgressDialog(self.parent)
                    # QtGui.QProgressDialog(None, QtCore.Qt.WindowStaysOnTopHint)
                # self.dialog.setMinimumDuration(2000)
                self.dialog.setRange(0, self.max_steps)
                self.dialog.setLabelText(self.title)
                # self.dialog.setAutoClose(True)
                # self.dialog.setAutoReset(True)
                self.center_window()
                self.dialog.show()

        # also set the Manager to in progress
        self.in_progress = True
Once we have determined that the request should go to one
dataset/ETHPy150Open eoyilmaz/anima/anima/ui/progress_dialog.py/ProgressDialogManager.create_dialog--crossover with--dataset/ETHPy150Open nii-cloud/dodai-compute/nova/scheduler/abstract_scheduler.py/AbstractScheduler._ask_child_zone_to_create_instance