eric6/Plugins/PluginEricdoc.py

changeset 8222
5994b80b8760
parent 8218
7c09585bd960
equal deleted inserted replaced
8221:0572a215bd2f 8222:5994b80b8760
157 about to be shown. 157 about to be shown.
158 158
159 @param menuName name of the menu to be shown (string) 159 @param menuName name of the menu to be shown (string)
160 @param menu reference to the menu (QMenu) 160 @param menu reference to the menu (QMenu)
161 """ 161 """
162 if menuName == "Apidoc": 162 if menuName == "Apidoc" and self.__projectAct is not None:
163 if self.__projectAct is not None: 163 self.__projectAct.setEnabled(
164 self.__projectAct.setEnabled( 164 e5App().getObject("Project").getProjectLanguage() in
165 e5App().getObject("Project").getProjectLanguage() in 165 ["Python", "Python3", "Ruby", "MicroPython"])
166 ["Python", "Python3", "Ruby", "MicroPython"])
167 166
168 def __doEricdoc(self): 167 def __doEricdoc(self):
169 """ 168 """
170 Private slot to perform the eric6_doc api documentation generation. 169 Private slot to perform the eric6_doc api documentation generation.
171 """ 170 """

eric ide

mercurial