Plugins/PluginTabnanny.py

branch
BgService
changeset 3442
927186c0d409
parent 3414
448cfee96f45
child 3456
96232974dcdb
equal deleted inserted replaced
3422:ecfe8271cc73 3442:927186c0d409
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 """

eric ide

mercurial