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 Syntax'), |
75 self.__projectAct = E5Action(self.trUtf8('Check Syntax'), |
76 self.trUtf8('&Syntax...'), 0, 0, |
76 self.trUtf8('&Syntax...'), 0, 0, |
77 self, 'project_check_syntax') |
77 self, 'project_check_syntax') |
78 self.__projectAct.setStatusTip(\ |
78 self.__projectAct.setStatusTip( |
79 self.trUtf8('Check syntax.')) |
79 self.trUtf8('Check syntax.')) |
80 self.__projectAct.setWhatsThis(self.trUtf8( |
80 self.__projectAct.setWhatsThis(self.trUtf8( |
81 """<b>Check Syntax...</b>""" |
81 """<b>Check Syntax...</b>""" |
82 """<p>This checks Python files for syntax errors.</p>""" |
82 """<p>This checks Python files for syntax errors.</p>""" |
83 )) |
83 )) |
138 |
138 |
139 @param menuName name of the menu to be shown (string) |
139 @param menuName name of the menu to be shown (string) |
140 @param menu reference to the menu (QMenu) |
140 @param menu reference to the menu (QMenu) |
141 """ |
141 """ |
142 if menuName == "Checks" and self.__projectAct is not None: |
142 if menuName == "Checks" and self.__projectAct is not None: |
143 self.__projectAct.setEnabled(\ |
143 self.__projectAct.setEnabled( |
144 e5App().getObject("Project").getProjectLanguage() == "Python3") |
144 e5App().getObject("Project").getProjectLanguage() == "Python3") |
145 |
145 |
146 def __projectBrowserShowMenu(self, menuName, menu): |
146 def __projectBrowserShowMenu(self, menuName, menu): |
147 """ |
147 """ |
148 Private slot called, when the the project browser menu or a submenu is |
148 Private slot called, when the the project browser menu or a submenu is |