Plugins/PluginTabnanny.py

changeset 3621
15f23ed3f216
parent 3591
2f2a4a76dd22
child 3656
441956d8fce5
equal deleted inserted replaced
3620:2c8d96d47cda 3621:15f23ed3f216
248 """<p>This checks Python files""" 248 """<p>This checks Python files"""
249 """ for bad indentations using tabnanny.</p>""" 249 """ for bad indentations using tabnanny.</p>"""
250 )) 250 ))
251 self.__projectBrowserAct.triggered.connect( 251 self.__projectBrowserAct.triggered.connect(
252 self.__projectBrowserTabnanny) 252 self.__projectBrowserTabnanny)
253 if not self.__projectBrowserAct in menu.actions(): 253 if self.__projectBrowserAct not in menu.actions():
254 menu.addAction(self.__projectBrowserAct) 254 menu.addAction(self.__projectBrowserAct)
255 255
256 def __projectTabnanny(self): 256 def __projectTabnanny(self):
257 """ 257 """
258 Private slot used to check the project files for bad indentations. 258 Private slot used to check the project files for bad indentations.
325 @param menuName name of the menu to be shown (string) 325 @param menuName name of the menu to be shown (string)
326 @param menu reference to the menu (QMenu) 326 @param menu reference to the menu (QMenu)
327 @param editor reference to the editor 327 @param editor reference to the editor
328 """ 328 """
329 if menuName == "Checks": 329 if menuName == "Checks":
330 if not self.__editorAct in menu.actions(): 330 if self.__editorAct not in menu.actions():
331 menu.addAction(self.__editorAct) 331 menu.addAction(self.__editorAct)
332 self.__editorAct.setEnabled(editor.isPyFile()) 332 self.__editorAct.setEnabled(editor.isPyFile())
333 333
334 def __editorTabnanny(self): 334 def __editorTabnanny(self):
335 """ 335 """

eric ide

mercurial