MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / on_context_menuChan

Method on_context_menuChan

src/bitmessageqt/__init__.py:3848–3865  ·  view source on GitHub ↗
(self, point)

Source from the content-addressed store, hash-verified

3846
3847 # TODO make one popMenu
3848 def on_context_menuChan(self, point):
3849 currentItem = self.getCurrentItem()
3850 self.popMenu = QtGui.QMenu(self)
3851 if isinstance(currentItem, Ui_AddressWidget):
3852 self.popMenu.addAction(self.actionNew)
3853 self.popMenu.addAction(self.actionDelete)
3854 self.popMenu.addSeparator()
3855 self.popMenu.addAction(self.actionClipboard)
3856 self.popMenu.addSeparator()
3857 if currentItem.isEnabled:
3858 self.popMenu.addAction(self.actionDisable)
3859 else:
3860 self.popMenu.addAction(self.actionEnable)
3861 self.popMenu.addAction(self.actionSetAvatar)
3862 self.popMenu.addSeparator()
3863 self.popMenu.addAction(self.actionMarkAllRead)
3864 self.popMenu.exec_(
3865 self.ui.treeWidgetChans.mapToGlobal(point))
3866
3867 def on_context_menuInbox(self, point):
3868 tableWidget = self.getCurrentMessagelist()

Callers

nothing calls this directly

Calls 1

getCurrentItemMethod · 0.95

Tested by

no test coverage detected