Sun, 17 Nov 2013 12:24:45 +0100
Made the progress bar of the syntax and indentation checker dialogs only visible, while it is checking and only if more than 1 file are being checked.
--- a/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py Sun Nov 17 12:17:41 2013 +0100 +++ b/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py Sun Nov 17 12:24:45 2013 +0100 @@ -60,6 +60,8 @@ self.__project = None self.filterFrame.setVisible(False) + self.checkProgress.setVisible(False) + def __resort(self): """ Private method to resort the tree. @@ -138,6 +140,7 @@ self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(True) self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) + self.checkProgress.setVisible(True) QApplication.processEvents() self.__clearErrors() @@ -165,6 +168,8 @@ (codestring and len(py2files) == 1) or \ (not codestring and len(py3files) + len(py2files) > 0): self.checkProgress.setMaximum(len(py3files) + len(py2files)) + self.checkProgressLabel.setVisible( + len(py3files) + len(py2files) > 1) QApplication.processEvents() ignoreStarImportWarnings = \ @@ -287,6 +292,8 @@ self.resultList.header().resizeSections(QHeaderView.ResizeToContents) self.resultList.header().setStretchLastSection(True) + self.checkProgress.setVisible(False) + def on_buttonBox_clicked(self, button): """ Private slot called by a button of the button box clicked.
--- a/Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py Sun Nov 17 12:17:41 2013 +0100 +++ b/Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py Sun Nov 17 12:24:45 2013 +0100 @@ -51,6 +51,8 @@ self.__project = None self.filterFrame.setVisible(False) + self.checkProgress.setVisible(False) + def __resort(self): """ Private method to resort the tree. @@ -108,6 +110,7 @@ self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(True) self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) + self.checkProgress.setVisible(True) QApplication.processEvents() if isinstance(fn, list): @@ -131,6 +134,8 @@ if len(py3files) + len(py2files) > 0: self.checkProgress.setMaximum(len(py3files) + len(py2files)) + self.checkProgressLabel.setVisible( + len(py3files) + len(py2files) > 1) QApplication.processEvents() # now go through all the files @@ -199,6 +204,8 @@ self.resultList.header().resizeSections(QHeaderView.ResizeToContents) self.resultList.header().setStretchLastSection(True) + self.checkProgress.setVisible(False) + def on_buttonBox_clicked(self, button): """ Private slot called by a button of the button box clicked.