summaryrefslogtreecommitdiff
path: root/src/leap/gui/progress.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-11-19 23:15:36 +0900
committerkali <kali@leap.se>2012-11-19 23:15:36 +0900
commit4153bee65d2541b99d4e41aaaf2fd6b2b71b2cc3 (patch)
treec9697911c3c3d750bd45c020d10d7eb4cdfbe4c0 /src/leap/gui/progress.py
parent78db9729c2f6714df4739b28d66be845019a1bf6 (diff)
disable "next" button during validation
and wait for user to click it. Closes #973
Diffstat (limited to 'src/leap/gui/progress.py')
-rw-r--r--src/leap/gui/progress.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/leap/gui/progress.py b/src/leap/gui/progress.py
index 6e8abc1f..687356aa 100644
--- a/src/leap/gui/progress.py
+++ b/src/leap/gui/progress.py
@@ -185,6 +185,26 @@ class ValidationPage(QtGui.QWizardPage):
self.onStepStatusChanged)
self.errors = OrderedDict()
+ self.done = False
+
+ # Sets/unsets done flag
+ # for isComplete checks
+
+ def set_done(self):
+ self.done = True
+ self.completeChanged.emit()
+
+ def set_undone(self):
+ self.done = False
+ self.completeChanged.emit()
+
+ def is_done(self):
+ return self.done
+
+ def isComplete(self):
+ return self.is_done()
+
+ ########################
def set_error(self, name, error):
self.errors[name] = error
@@ -285,3 +305,11 @@ class ValidationPage(QtGui.QWizardPage):
#logger.debug('check thread started!')
#logger.debug('waiting for it to terminate...')
self.checks.wait()
+
+ def show_progress(self):
+ self.progress.show()
+ self.stepsTableWidget.show()
+
+ def hide_progress(self):
+ self.progress.hide()
+ self.stepsTableWidget.hide()