src/eric7/Plugins/PluginEricapi.py

branch
eric7
changeset 10683
779cda568acb
parent 10439
21c28b0f9e41
child 10716
11cdcc824469
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
156 if menu: 156 if menu:
157 menu.removeAction(self.__projectAct) 157 menu.removeAction(self.__projectAct)
158 ericApp().getObject("Project").removeEricActions([self.__projectAct]) 158 ericApp().getObject("Project").removeEricActions([self.__projectAct])
159 self.__initialize() 159 self.__initialize()
160 160
161 def __projectShowMenu(self, menuName, menu): # noqa: U100 161 def __projectShowMenu(self, menuName, _menu):
162 """ 162 """
163 Private slot called, when the the project menu or a submenu is 163 Private slot called, when the the project menu or a submenu is
164 about to be shown. 164 about to be shown.
165 165
166 @param menuName name of the menu to be shown 166 @param menuName name of the menu to be shown
167 @type str 167 @type str
168 @param menu reference to the menu 168 @param _menu reference to the menu (unused)
169 @type QMenu 169 @type QMenu
170 """ 170 """
171 if menuName == "Apidoc" and self.__projectAct is not None: 171 if menuName == "Apidoc" and self.__projectAct is not None:
172 self.__projectAct.setEnabled( 172 self.__projectAct.setEnabled(
173 ericApp().getObject("Project").getProjectLanguage() 173 ericApp().getObject("Project").getProjectLanguage()

eric ide

mercurial