288 """<p>This checks Python files for compliance to the""" |
288 """<p>This checks Python files for compliance to the""" |
289 """ code style conventions given in various PEPs.</p>""" |
289 """ code style conventions given in various PEPs.</p>""" |
290 )) |
290 )) |
291 self.__projectBrowserAct.triggered.connect( |
291 self.__projectBrowserAct.triggered.connect( |
292 self.__projectBrowserCodeStyleCheck) |
292 self.__projectBrowserCodeStyleCheck) |
293 if not self.__projectBrowserAct in menu.actions(): |
293 if self.__projectBrowserAct not in menu.actions(): |
294 menu.addAction(self.__projectBrowserAct) |
294 menu.addAction(self.__projectBrowserAct) |
295 |
295 |
296 def __projectCodeStyleCheck(self): |
296 def __projectCodeStyleCheck(self): |
297 """ |
297 """ |
298 Private slot used to check the project files for code style. |
298 Private slot used to check the project files for code style. |
376 @param menuName name of the menu to be shown (string) |
376 @param menuName name of the menu to be shown (string) |
377 @param menu reference to the menu (QMenu) |
377 @param menu reference to the menu (QMenu) |
378 @param editor reference to the editor |
378 @param editor reference to the editor |
379 """ |
379 """ |
380 if menuName == "Checks": |
380 if menuName == "Checks": |
381 if not self.__editorAct in menu.actions(): |
381 if self.__editorAct not in menu.actions(): |
382 menu.addAction(self.__editorAct) |
382 menu.addAction(self.__editorAct) |
383 self.__editorAct.setEnabled(editor.isPyFile()) |
383 self.__editorAct.setEnabled(editor.isPyFile()) |
384 |
384 |
385 def __editorCodeStyleCheck(self): |
385 def __editorCodeStyleCheck(self): |
386 """ |
386 """ |