eric6/Plugins/PluginEricapi.py

changeset 8222
5994b80b8760
parent 8218
7c09585bd960
equal deleted inserted replaced
8221:0572a215bd2f 8222:5994b80b8760
136 about to be shown. 136 about to be shown.
137 137
138 @param menuName name of the menu to be shown (string) 138 @param menuName name of the menu to be shown (string)
139 @param menu reference to the menu (QMenu) 139 @param menu reference to the menu (QMenu)
140 """ 140 """
141 if menuName == "Apidoc": 141 if menuName == "Apidoc" and self.__projectAct is not None:
142 if self.__projectAct is not None: 142 self.__projectAct.setEnabled(
143 self.__projectAct.setEnabled( 143 e5App().getObject("Project").getProjectLanguage() in
144 e5App().getObject("Project").getProjectLanguage() in 144 ["Python", "Python3", "Ruby", "MicroPython"])
145 ["Python", "Python3", "Ruby", "MicroPython"])
146 145
147 def __doEricapi(self): 146 def __doEricapi(self):
148 """ 147 """
149 Private slot to perform the eric6_api api generation. 148 Private slot to perform the eric6_api api generation.
150 """ 149 """

eric ide

mercurial