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