240 self.__menu.addSeparator() |
240 self.__menu.addSeparator() |
241 self.__menu.addAction( |
241 self.__menu.addAction( |
242 self.tr("Extract Function"), self.__jediServer.refactoringExtractFunction |
242 self.tr("Extract Function"), self.__jediServer.refactoringExtractFunction |
243 ) |
243 ) |
244 |
244 |
245 def __editorShowMenu(self, menuName, menu, editor): # noqa: U100 |
245 def __editorShowMenu(self, menuName, _menu, editor): |
246 """ |
246 """ |
247 Private slot called, when the the editor context menu or a submenu is |
247 Private slot called, when the the editor context menu or a submenu is |
248 about to be shown. |
248 about to be shown. |
249 |
249 |
250 @param menuName name of the menu to be shown |
250 @param menuName name of the menu to be shown |
251 @type str |
251 @type str |
252 @param menu reference to the menu |
252 @param _menu reference to the menu (unused) |
253 @type QMenu |
253 @type QMenu |
254 @param editor reference to the editor |
254 @param editor reference to the editor |
255 @type Editor |
255 @type Editor |
256 """ |
256 """ |
257 if menuName == "Main": |
257 if menuName == "Main": |