Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py

changeset 3190
a9a94491c4fd
parent 3160
209a07d7e401
child 3484
645c12de6b0c
equal deleted inserted replaced
3189:9a21c547de5f 3190:a9a94491c4fd
203 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False) 203 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False)
204 self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) 204 self.buttonBox.button(QDialogButtonBox.Close).setDefault(True)
205 205
206 if self.noResults: 206 if self.noResults:
207 self.__createResultItem( 207 self.__createResultItem(
208 self.trUtf8('No indentation errors found.'), "", "") 208 self.tr('No indentation errors found.'), "", "")
209 QApplication.processEvents() 209 QApplication.processEvents()
210 self.resultList.header().resizeSections(QHeaderView.ResizeToContents) 210 self.resultList.header().resizeSections(QHeaderView.ResizeToContents)
211 self.resultList.header().setStretchLastSection(True) 211 self.resultList.header().setStretchLastSection(True)
212 212
213 self.checkProgress.setVisible(False) 213 self.checkProgress.setVisible(False)
278 valid, if the status is True. 278 valid, if the status is True.
279 """ 279 """
280 interpreter = Preferences.getDebugger("PythonInterpreter") 280 interpreter = Preferences.getDebugger("PythonInterpreter")
281 if interpreter == "" or not Utilities.isExecutable(interpreter): 281 if interpreter == "" or not Utilities.isExecutable(interpreter):
282 return (True, filename, "1", 282 return (True, filename, "1",
283 self.trUtf8("Python2 interpreter not configured.")) 283 self.tr("Python2 interpreter not configured."))
284 284
285 checker = os.path.join(getConfig('ericDir'), 285 checker = os.path.join(getConfig('ericDir'),
286 "UtilitiesPython2", "TabnannyChecker.py") 286 "UtilitiesPython2", "TabnannyChecker.py")
287 287
288 proc = QProcess() 288 proc = QProcess()
302 return (True, fn, line, error) 302 return (True, fn, line, error)
303 else: 303 else:
304 return (False, None, None, None) 304 return (False, None, None, None)
305 305
306 return (True, filename, "1", 306 return (True, filename, "1",
307 self.trUtf8("Python2 interpreter did not finish within 15s.")) 307 self.tr("Python2 interpreter did not finish within 15s."))

eric ide

mercurial