Plugins/PluginCodeStyleChecker.py

branch
BgService
changeset 3442
927186c0d409
parent 3413
5e63f809732a
child 3456
96232974dcdb
equal deleted inserted replaced
3422:ecfe8271cc73 3442:927186c0d409
335 @param editor reference to the editor 335 @param editor reference to the editor
336 """ 336 """
337 if menuName == "Checks": 337 if menuName == "Checks":
338 if not self.__editorAct in menu.actions(): 338 if not self.__editorAct in menu.actions():
339 menu.addAction(self.__editorAct) 339 menu.addAction(self.__editorAct)
340 self.__editorAct.setEnabled( 340 self.__editorAct.setEnabled(editor.getPyVersion())
341 editor.isPy3File() or editor.isPy2File())
342 341
343 def __editorCodeStyleCheck(self): 342 def __editorCodeStyleCheck(self):
344 """ 343 """
345 Private slot to handle the code style check context menu action 344 Private slot to handle the code style check context menu action
346 of the editors. 345 of the editors.

eric ide

mercurial