Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py

branch
Py2 comp.
changeset 3142
55030c09e142
parent 3099
d5dcda74d839
parent 3091
8239cae3f947
child 3143
b6ee3ac90a6f
equal deleted inserted replaced
3141:72f3bde98c58 3142:55030c09e142
60 60
61 self.__fileList = [] 61 self.__fileList = []
62 self.__project = None 62 self.__project = None
63 self.filterFrame.setVisible(False) 63 self.filterFrame.setVisible(False)
64 64
65 self.checkProgress.setVisible(False)
66
65 def __resort(self): 67 def __resort(self):
66 """ 68 """
67 Private method to resort the tree. 69 Private method to resort the tree.
68 """ 70 """
69 self.resultList.sortItems(self.resultList.sortColumn(), 71 self.resultList.sortItems(self.resultList.sortColumn(),
138 140
139 self.cancelled = False 141 self.cancelled = False
140 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) 142 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False)
141 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(True) 143 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(True)
142 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) 144 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True)
145 self.checkProgress.setVisible(True)
143 QApplication.processEvents() 146 QApplication.processEvents()
144 147
145 self.__clearErrors() 148 self.__clearErrors()
146 149
147 if isinstance(fn, list): 150 if isinstance(fn, list):
241 self.__clearErrors() 244 self.__clearErrors()
242 else: 245 else:
243 self.showButton.setEnabled(True) 246 self.showButton.setEnabled(True)
244 self.resultList.header().resizeSections(QHeaderView.ResizeToContents) 247 self.resultList.header().resizeSections(QHeaderView.ResizeToContents)
245 self.resultList.header().setStretchLastSection(True) 248 self.resultList.header().setStretchLastSection(True)
249
250 self.checkProgress.setVisible(False)
246 251
247 def on_buttonBox_clicked(self, button): 252 def on_buttonBox_clicked(self, button):
248 """ 253 """
249 Private slot called by a button of the button box clicked. 254 Private slot called by a button of the button box clicked.
250 255

eric ide

mercurial