Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py

changeset 3091
8239cae3f947
parent 3036
30c81c9e88b8
child 3137
59d9f8c238f0
child 3142
55030c09e142
--- 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.

eric ide

mercurial