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
1 changed files with 7 additions and 7 deletions

View File

@ -2609,11 +2609,11 @@ class MyForm(settingsmixin.SMainWindow):
def processing(self): def processing(self):
"""Processing progress bar""" """Processing progress bar"""
self.completed = 0 completed = 0
while self.completed < 100: while completed < 100:
self.completed += 0.1 completed += 0.1
self.progress.setValue(self.completed) self.progress.setValue(completed)
def hideprogressBar(self): def hideprogressBar(self):
"""Hide progress bar""" """Hide progress bar"""
@ -2654,7 +2654,7 @@ class MyForm(settingsmixin.SMainWindow):
_translate( _translate(
"MainWindow", "Wait until these tasks finish?"), parent=self) "MainWindow", "Wait until these tasks finish?"), parent=self)
messagebox.setStandardButtons( messagebox.setStandardButtons(
QtGui.QMessageBox.No|QtGui.QMessageBox.Cancel) QtGui.QMessageBox.No | QtGui.QMessageBox.Cancel)
btnN = messagebox.button(QtGui.QMessageBox.No) btnN = messagebox.button(QtGui.QMessageBox.No)
btnN.setText("Quit") btnN.setText("Quit")
btnN.clicked.connect(self.processing) btnN.clicked.connect(self.processing)
@ -2683,7 +2683,7 @@ class MyForm(settingsmixin.SMainWindow):
QtCore.QCoreApplication.CodecForTr, pendingDownload() QtCore.QCoreApplication.CodecForTr, pendingDownload()
), parent=self) ), parent=self)
messagebox.setStandardButtons( messagebox.setStandardButtons(
QtGui.QMessageBox.No|QtGui.QMessageBox.Cancel) QtGui.QMessageBox.No | QtGui.QMessageBox.Cancel)
btnN = messagebox.button(QtGui.QMessageBox.No) btnN = messagebox.button(QtGui.QMessageBox.No)
btnN.setText("Quit") btnN.setText("Quit")
btnN.clicked.connect(self.processing) btnN.clicked.connect(self.processing)
@ -2711,7 +2711,7 @@ class MyForm(settingsmixin.SMainWindow):
" connected and the synchronisation finishes?" " connected and the synchronisation finishes?"
), parent=self) ), parent=self)
messagebox.setStandardButtons( messagebox.setStandardButtons(
QtGui.QMessageBox.No|QtGui.QMessageBox.Cancel) QtGui.QMessageBox.No | QtGui.QMessageBox.Cancel)
btnN = messagebox.button(QtGui.QMessageBox.No) btnN = messagebox.button(QtGui.QMessageBox.No)
btnN.setText("Quit") btnN.setText("Quit")
btnN.clicked.connect(self.processing) btnN.clicked.connect(self.processing)