--- 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.