src/eric7/Plugins/PluginEricdoc.py

branch
eric7
changeset 10683
779cda568acb
parent 10439
21c28b0f9e41
child 10716
11cdcc824469
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
200 if menu: 200 if menu:
201 menu.removeAction(self.__projectAct) 201 menu.removeAction(self.__projectAct)
202 ericApp().getObject("Project").removeEricActions([self.__projectAct]) 202 ericApp().getObject("Project").removeEricActions([self.__projectAct])
203 self.__initialize() 203 self.__initialize()
204 204
205 def __projectShowMenu(self, menuName, menu): # noqa: U100 205 def __projectShowMenu(self, menuName, _menu):
206 """ 206 """
207 Private slot called, when the the project menu or a submenu is 207 Private slot called, when the the project menu or a submenu is
208 about to be shown. 208 about to be shown.
209 209
210 @param menuName name of the menu to be shown 210 @param menuName name of the menu to be shown
211 @type str 211 @type str
212 @param menu reference to the menu 212 @param _menu reference to the menu (unused)
213 @type QMenu 213 @type QMenu
214 """ 214 """
215 if menuName == "Apidoc" and self.__projectAct is not None: 215 if menuName == "Apidoc" and self.__projectAct is not None:
216 self.__projectAct.setEnabled( 216 self.__projectAct.setEnabled(
217 ericApp().getObject("Project").getProjectLanguage() 217 ericApp().getObject("Project").getProjectLanguage()

eric ide

mercurial