Closed GoogleCodeExporter closed 9 years ago
Version 1.3 of the plugin will include a right click menu callback interface:
Example usage:
import ed_msg
def myMenuCallback(menu_id, cb_data):
# Callback method for custom menu item
print "do stuff"
ID_DOFOO = wx.NewId()
def OnCodeBrowserRightClick(self, msg):
# ed_msg handler hook for codebrowser right click menu
data = msg.GetData() # Data is instance of ebmlib.ContextMenuManager
data.Menu.Append(ID_DOFOO, "My Menu Item")
data.AddHandler(ID_DOFOO, myMenuCallback)
ed_msg.Subscribe(("CodeBrowser","ContextMenu"), OnCodeBrowserRightClick)
Original comment by CodyPrec...@gmail.com
on 13 May 2011 at 10:52
Original issue reported on code.google.com by
thomas.w...@gmail.com
on 8 Apr 2011 at 5:31