Plugins/PluginPep8Checker.py

changeset 849
996367a89673
parent 843
522c8befcf49
child 945
8cd4d08fa9f6
child 955
377efd9104a7
equal deleted inserted replaced
848:e2fad77b41ba 849:996367a89673
263 Private slot to handle the PEP 8 check context menu action 263 Private slot to handle the PEP 8 check context menu action
264 of the editors. 264 of the editors.
265 """ 265 """
266 editor = e5App().getObject("ViewManager").activeWindow() 266 editor = e5App().getObject("ViewManager").activeWindow()
267 if editor is not None: 267 if editor is not None:
268 self.__editorPep8CheckerDialog = Pep8Dialog() 268 if editor.checkDirty():
269 self.__editorPep8CheckerDialog.show() 269 self.__editorPep8CheckerDialog = Pep8Dialog()
270 self.__editorPep8CheckerDialog.start( 270 self.__editorPep8CheckerDialog.show()
271 editor.getFileName(), 271 self.__editorPep8CheckerDialog.start(
272 codestring = editor.text(), 272 editor.getFileName(),
273 save = True, 273 save = True,
274 repeat = True) 274 repeat = True)

eric ide

mercurial