RefactoringRope/RopeProgressDialog.py

branch
server_client_variant
changeset 165
ea41742015af
parent 164
121d426d4ed7
child 245
75a35a927952
--- a/RefactoringRope/RopeProgressDialog.py	Thu Sep 14 19:39:11 2017 +0200
+++ b/RefactoringRope/RopeProgressDialog.py	Fri Sep 15 19:50:07 2017 +0200
@@ -33,13 +33,11 @@
         @param parent reference to the parent widget
         @type QWidget
         """
+        super(RopeProgressDialog, self).__init__("", "", 0, 1,
+                                                 "", parent)
         if interruptable:
-            cancelLabel = self.tr("Interrupt")
-        else:
-            cancelLabel = ""
-        barFormat = self.tr("%v/%m files")
-        super(RopeProgressDialog, self).__init__("", cancelLabel, 0, 1,
-                                                 barFormat, parent)
+            self.setCancelButtonText(self.tr("Interrupt"))
+        self.setFormat(self.tr("%v/%m files"))
         label = QLabel("")
         label.setWordWrap(True)
         self.setLabel(label)

eric ide

mercurial