Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py

changeset 3091
8239cae3f947
parent 3064
2e7054d62218
child 3137
59d9f8c238f0
child 3142
55030c09e142
--- 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.

eric ide

mercurial