73 menu = e5App().getObject("Project").getMenu("Checks") |
73 menu = e5App().getObject("Project").getMenu("Checks") |
74 if menu: |
74 if menu: |
75 self.__projectAct = E5Action(self.trUtf8('Check Indentations'), |
75 self.__projectAct = E5Action(self.trUtf8('Check Indentations'), |
76 self.trUtf8('&Indentations...'), 0, 0, |
76 self.trUtf8('&Indentations...'), 0, 0, |
77 self,'project_check_indentations') |
77 self,'project_check_indentations') |
78 self.__projectAct.setStatusTip(\ |
78 self.__projectAct.setStatusTip( |
79 self.trUtf8('Check indentations using tabnanny.')) |
79 self.trUtf8('Check indentations using tabnanny.')) |
80 self.__projectAct.setWhatsThis(self.trUtf8( |
80 self.__projectAct.setWhatsThis(self.trUtf8( |
81 """<b>Check Indentations...</b>""" |
81 """<b>Check Indentations...</b>""" |
82 """<p>This checks Python files""" |
82 """<p>This checks Python files""" |
83 """ for bad indentations using tabnanny.</p>""" |
83 """ for bad indentations using tabnanny.</p>""" |
140 |
140 |
141 @param menuName name of the menu to be shown (string) |
141 @param menuName name of the menu to be shown (string) |
142 @param menu reference to the menu (QMenu) |
142 @param menu reference to the menu (QMenu) |
143 """ |
143 """ |
144 if menuName == "Checks" and self.__projectAct is not None: |
144 if menuName == "Checks" and self.__projectAct is not None: |
145 self.__projectAct.setEnabled(\ |
145 self.__projectAct.setEnabled( |
146 e5App().getObject("Project").getProjectLanguage() == "Python3") |
146 e5App().getObject("Project").getProjectLanguage() == "Python3") |
147 |
147 |
148 def __projectBrowserShowMenu(self, menuName, menu): |
148 def __projectBrowserShowMenu(self, menuName, menu): |
149 """ |
149 """ |
150 Private slot called, when the the project browser context menu or a submenu is |
150 Private slot called, when the the project browser context menu or a submenu is |