Plugins/PluginCodeStyleChecker.py

changeset 3446
5a670e55adbb
parent 3345
071afe8be2a1
child 3450
2f7c8fd8e3f5
child 3484
645c12de6b0c
equal deleted inserted replaced
3441:1b07f996e9ee 3446:5a670e55adbb
264 @param editor reference to the editor 264 @param editor reference to the editor
265 """ 265 """
266 if menuName == "Checks": 266 if menuName == "Checks":
267 if not self.__editorAct in menu.actions(): 267 if not self.__editorAct in menu.actions():
268 menu.addAction(self.__editorAct) 268 menu.addAction(self.__editorAct)
269 self.__editorAct.setEnabled( 269 self.__editorAct.setEnabled(editor.isPyFile())
270 editor.isPy3File() or editor.isPy2File())
271 270
272 def __editorCodeStyleCheck(self): 271 def __editorCodeStyleCheck(self):
273 """ 272 """
274 Private slot to handle the code style check context menu action 273 Private slot to handle the code style check context menu action
275 of the editors. 274 of the editors.

eric ide

mercurial