Fixed CQ for bitmessageqt.__init__ module

This commit is contained in:
navjot 2020-10-28 00:42:23 +05:30
parent 65a1ade08a
commit cfc448db7b
No known key found for this signature in database
GPG Key ID: 9EE70AFD71357F1C

View File

@ -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)