Plugins/PluginTabnanny.py

changeset 3446
5a670e55adbb
parent 3345
071afe8be2a1
child 3450
2f7c8fd8e3f5
child 3484
645c12de6b0c
equal deleted inserted replaced
3441:1b07f996e9ee 3446:5a670e55adbb
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 """

eric ide

mercurial