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. |