src/eric7/Plugins/PluginCodeStyleChecker.py

branch
server
changeset 10704
27d21e5163b8
parent 10630
552a790fd9bc
parent 10683
779cda568acb
child 10718
c9252721680b
equal deleted inserted replaced
10680:306373ccf8fd 10704:27d21e5163b8
330 if menu is not None: 330 if menu is not None:
331 menu.removeAction(self.__editorAct) 331 menu.removeAction(self.__editorAct)
332 332
333 self.__initialize() 333 self.__initialize()
334 334
335 def __projectShowMenu(self, menuName, menu): # noqa: U100 335 def __projectShowMenu(self, menuName, _menu):
336 """ 336 """
337 Private slot called, when the the project menu or a submenu is 337 Private slot called, when the the project menu or a submenu is
338 about to be shown. 338 about to be shown.
339 339
340 @param menuName name of the menu to be shown 340 @param menuName name of the menu to be shown
341 @type str 341 @type str
342 @param menu reference to the menu 342 @param _menu reference to the menu (unused)
343 @type QMenu 343 @type QMenu
344 """ 344 """
345 if menuName == "Checks" and self.__projectAct is not None: 345 if menuName == "Checks" and self.__projectAct is not None:
346 self.__projectAct.setEnabled( 346 self.__projectAct.setEnabled(
347 ericApp().getObject("Project").getProjectLanguage() 347 ericApp().getObject("Project").getProjectLanguage()

eric ide

mercurial