From 63fc5b19e39072f4bda26f2649e83832d68b5000 Mon Sep 17 00:00:00 2001 From: kali Date: Wed, 7 Nov 2012 06:06:40 +0900 Subject: fix issue with refresh timing using end_sentinel as a workaround for the lack of refresh. doing a pause so user gets some feedback about what's going on. error messages on select provider page should be all covered now. --- src/leap/gui/progress.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/leap/gui/progress.py') diff --git a/src/leap/gui/progress.py b/src/leap/gui/progress.py index 16a55e3a..d6551939 100644 --- a/src/leap/gui/progress.py +++ b/src/leap/gui/progress.py @@ -7,7 +7,8 @@ try: except ImportError: # We must be in 2.6 from leap.util.dicts import OrderedDict -#import time + +import logging from PyQt4 import QtCore from PyQt4 import QtGui @@ -18,6 +19,8 @@ from leap.gui import mainwindow_rc CHECKMARK_IMG = ":/images/checked.png" +logger = logging.getLogger(__name__) + class ImgWidget(QtGui.QWidget): @@ -116,7 +119,7 @@ class StepsTableWidget(QtGui.QTableWidget): # but on populating is 456... :( # XXX do we need this initial? - print 'init table. width=%s' % width + logger.debug('init table. width=%s' % width) self.horizontalHeader().resizeSection(0, width * 0.7) # this disables the table grid. @@ -212,7 +215,7 @@ class ValidationPage(QtGui.QWizardPage): table = self.stepsTableWidget FIRST_COLUMN_PERCENT = 0.75 width = table.width() - print 'populate table. width=%s' % width + logger.debug('populate table. width=%s' % width) table.horizontalHeader().resizeSection(0, width * FIRST_COLUMN_PERCENT) def onStepStatusChanged(self, status, progress=None): @@ -223,7 +226,6 @@ class ValidationPage(QtGui.QWizardPage): self.progress.update() def add_status_line(self, message): - print 'adding status line...' index = len(self.steps) step = ProgressStep(message, False, index=index) self.steps.addStep(step) @@ -261,6 +263,6 @@ class ValidationPage(QtGui.QWizardPage): self._do_checks(update_signal=signal)) self.checks.finished.connect(self._do_validation) self.checks.begin() - print 'check thread started!' - print 'waiting for it to terminate...' + #logger.debug('check thread started!') + #logger.debug('waiting for it to terminate...') self.checks.wait() -- cgit v1.2.3