--- a/RefactoringRope/RopeProgressDialog.py Sat Jun 25 18:06:56 2022 +0200 +++ b/RefactoringRope/RopeProgressDialog.py Wed Sep 21 15:30:34 2022 +0200 @@ -17,10 +17,11 @@ """ Class implementing TaskHandle with a progress dialog. """ + def __init__(self, server, title, interruptable=True, parent=None): """ Constructor - + @param server reference to the JSON server @type EricJsonServer @param title title for the dialog @@ -39,13 +40,13 @@ label.setWordWrap(True) self.setLabel(label) self.setWindowTitle(self.tr("eric7 - {0}").format(title)) - + self.__server = server - + def updateProgress(self, params): """ Public slot to handle the task progress. - + @param params dictionary containing the data to be set @type dict """ @@ -55,8 +56,8 @@ # these are always sent together self.setMaximum(params["Maximum"]) self.setValue(params["Value"]) - + QCoreApplication.processEvents() - + if self.wasCanceled(): self.__server.sendJson("AbortAction", {})