From cfc448db7bb78c69f265199f512776fdfa2de8c4 Mon Sep 17 00:00:00 2001 From: navjot Date: Wed, 28 Oct 2020 00:42:23 +0530 Subject: [PATCH] Fixed CQ for bitmessageqt.__init__ module --- src/bitmessageqt/__init__.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 6cb6a748..95432826 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -2609,11 +2609,11 @@ class MyForm(settingsmixin.SMainWindow): def processing(self): """Processing progress bar""" - self.completed = 0 + completed = 0 - while self.completed < 100: - self.completed += 0.1 - self.progress.setValue(self.completed) + while completed < 100: + completed += 0.1 + self.progress.setValue(completed) def hideprogressBar(self): """Hide progress bar""" @@ -2654,7 +2654,7 @@ class MyForm(settingsmixin.SMainWindow): _translate( "MainWindow", "Wait until these tasks finish?"), parent=self) messagebox.setStandardButtons( - QtGui.QMessageBox.No|QtGui.QMessageBox.Cancel) + QtGui.QMessageBox.No | QtGui.QMessageBox.Cancel) btnN = messagebox.button(QtGui.QMessageBox.No) btnN.setText("Quit") btnN.clicked.connect(self.processing) @@ -2683,7 +2683,7 @@ class MyForm(settingsmixin.SMainWindow): QtCore.QCoreApplication.CodecForTr, pendingDownload() ), parent=self) messagebox.setStandardButtons( - QtGui.QMessageBox.No|QtGui.QMessageBox.Cancel) + QtGui.QMessageBox.No | QtGui.QMessageBox.Cancel) btnN = messagebox.button(QtGui.QMessageBox.No) btnN.setText("Quit") btnN.clicked.connect(self.processing) @@ -2711,7 +2711,7 @@ class MyForm(settingsmixin.SMainWindow): " connected and the synchronisation finishes?" ), parent=self) messagebox.setStandardButtons( - QtGui.QMessageBox.No|QtGui.QMessageBox.Cancel) + QtGui.QMessageBox.No | QtGui.QMessageBox.Cancel) btnN = messagebox.button(QtGui.QMessageBox.No) btnN.setText("Quit") btnN.clicked.connect(self.processing)