110 |
112 |
111 self.cancelled = False |
113 self.cancelled = False |
112 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
114 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
113 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(True) |
115 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(True) |
114 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
116 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
|
117 self.checkProgress.setVisible(True) |
115 QApplication.processEvents() |
118 QApplication.processEvents() |
116 |
119 |
117 if isinstance(fn, list): |
120 if isinstance(fn, list): |
118 files = fn |
121 files = fn |
119 elif os.path.isdir(fn): |
122 elif os.path.isdir(fn): |
180 self.trUtf8('No indentation errors found.'), "", "") |
183 self.trUtf8('No indentation errors found.'), "", "") |
181 QApplication.processEvents() |
184 QApplication.processEvents() |
182 self.resultList.header().resizeSections(QHeaderView.ResizeToContents) |
185 self.resultList.header().resizeSections(QHeaderView.ResizeToContents) |
183 self.resultList.header().setStretchLastSection(True) |
186 self.resultList.header().setStretchLastSection(True) |
184 |
187 |
|
188 self.checkProgress.setVisible(False) |
|
189 |
185 def on_buttonBox_clicked(self, button): |
190 def on_buttonBox_clicked(self, button): |
186 """ |
191 """ |
187 Private slot called by a button of the button box clicked. |
192 Private slot called by a button of the button box clicked. |
188 |
193 |
189 @param button button that was clicked (QAbstractButton) |
194 @param button button that was clicked (QAbstractButton) |