showing progress bar on click on quit button
This commit is contained in:
parent
cfc448db7b
commit
cbe7756bb9
|
@ -2610,8 +2610,8 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
def processing(self):
|
def processing(self):
|
||||||
"""Processing progress bar"""
|
"""Processing progress bar"""
|
||||||
completed = 0
|
completed = 0
|
||||||
|
self.progress.show()
|
||||||
while completed < 100:
|
while completed < 80:
|
||||||
completed += 0.1
|
completed += 0.1
|
||||||
self.progress.setValue(completed)
|
self.progress.setValue(completed)
|
||||||
|
|
||||||
|
@ -2637,7 +2637,7 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
if getPowType() == "python" and (powQueueSize() > 0 or pendingUpload() > 0):
|
if getPowType() == "python" and (powQueueSize() > 0 or pendingUpload() > 0):
|
||||||
self.progress = QtGui.QProgressBar(self)
|
self.progress = QtGui.QProgressBar(self)
|
||||||
self.progress.setGeometry(550, 555, 250, 20)
|
self.progress.setGeometry(550, 555, 250, 20)
|
||||||
self.progress.show()
|
# self.progress.show()
|
||||||
messagebox = QtGui.QMessageBox(
|
messagebox = QtGui.QMessageBox(
|
||||||
QtGui.QMessageBox.Question,
|
QtGui.QMessageBox.Question,
|
||||||
_translate("MainWindow", "Proof of work pending"),
|
_translate("MainWindow", "Proof of work pending"),
|
||||||
|
@ -2670,7 +2670,7 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
if pendingDownload() > 0:
|
if pendingDownload() > 0:
|
||||||
self.progress = QtGui.QProgressBar(self)
|
self.progress = QtGui.QProgressBar(self)
|
||||||
self.progress.setGeometry(550, 555, 250, 20)
|
self.progress.setGeometry(550, 555, 250, 20)
|
||||||
self.progress.show()
|
# self.progress.show()
|
||||||
messagebox = QtGui.QMessageBox(
|
messagebox = QtGui.QMessageBox(
|
||||||
QtGui.QMessageBox.Question,
|
QtGui.QMessageBox.Question,
|
||||||
_translate("MainWindow", "Synchronisation pending"),
|
_translate("MainWindow", "Synchronisation pending"),
|
||||||
|
@ -2700,7 +2700,7 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
'bitmessagesettings', 'dontconnect'):
|
'bitmessagesettings', 'dontconnect'):
|
||||||
self.progress = QtGui.QProgressBar(self)
|
self.progress = QtGui.QProgressBar(self)
|
||||||
self.progress.setGeometry(550, 555, 250, 20)
|
self.progress.setGeometry(550, 555, 250, 20)
|
||||||
self.progress.show()
|
# self.progress.show()
|
||||||
messagebox = QtGui.QMessageBox(
|
messagebox = QtGui.QMessageBox(
|
||||||
QtGui.QMessageBox.Question,
|
QtGui.QMessageBox.Question,
|
||||||
_translate("MainWindow", "Not connected"),
|
_translate("MainWindow", "Not connected"),
|
||||||
|
|
Reference in New Issue
Block a user