286 @param editor reference to the editor |
286 @param editor reference to the editor |
287 """ |
287 """ |
288 if menuName == "Checks": |
288 if menuName == "Checks": |
289 if not self.__editorAct in menu.actions(): |
289 if not self.__editorAct in menu.actions(): |
290 menu.addAction(self.__editorAct) |
290 menu.addAction(self.__editorAct) |
291 self.__editorAct.setEnabled( |
291 self.__editorAct.setEnabled(editor.getPyVersion()) |
292 editor.isPy3File() or editor.isPy2File()) |
|
293 |
292 |
294 def __editorTabnanny(self): |
293 def __editorTabnanny(self): |
295 """ |
294 """ |
296 Private slot to handle the tabnanny context menu action of the editors. |
295 Private slot to handle the tabnanny context menu action of the editors. |
297 """ |
296 """ |