src/eric7/Plugins/PluginSyntaxChecker.py

branch
eric7
changeset 10683
779cda568acb
parent 10439
21c28b0f9e41
child 10704
27d21e5163b8
child 10716
11cdcc824469
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
272 if menu is not None: 272 if menu is not None:
273 menu.removeAction(self.__editorAct) 273 menu.removeAction(self.__editorAct)
274 274
275 self.__initialize() 275 self.__initialize()
276 276
277 def __projectShowMenu(self, menuName, menu): # noqa: U100 277 def __projectShowMenu(self, menuName, _menu):
278 """ 278 """
279 Private slot called, when the the project menu or a submenu is 279 Private slot called, when the the project menu or a submenu is
280 about to be shown. 280 about to be shown.
281 281
282 @param menuName name of the menu to be shown 282 @param menuName name of the menu to be shown
283 @type str 283 @type str
284 @param menu reference to the menu 284 @param _menu reference to the menu (unused)
285 @type QMenu 285 @type QMenu
286 """ 286 """
287 if menuName == "Checks" and self.__projectAct is not None: 287 if menuName == "Checks" and self.__projectAct is not None:
288 self.__projectAct.setEnabled( 288 self.__projectAct.setEnabled(
289 ericApp().getObject("Project").getProjectLanguage() 289 ericApp().getObject("Project").getProjectLanguage()

eric ide

mercurial