250 @param editor reference to the editor |
250 @param editor reference to the editor |
251 """ |
251 """ |
252 if menuName == "Checks": |
252 if menuName == "Checks": |
253 if not self.__editorAct in menu.actions(): |
253 if not self.__editorAct in menu.actions(): |
254 menu.addAction(self.__editorAct) |
254 menu.addAction(self.__editorAct) |
255 self.__editorAct.setEnabled( |
255 self.__editorAct.setEnabled(editor.isPyFile()) |
256 editor.isPy3File() or editor.isPy2File()) |
|
257 |
256 |
258 def __editorTabnanny(self): |
257 def __editorTabnanny(self): |
259 """ |
258 """ |
260 Private slot to handle the tabnanny context menu action of the editors. |
259 Private slot to handle the tabnanny context menu action of the editors. |
261 """ |
260 """ |