[8.0] Tag Browse Tree showing refresh popup instead of custom popup

Good afternoon,

I’m attempting to implement a right-click popup menu in a tag browse tree component, but for some reason instead of showing the popup I’m creating in the createPopupMenu() function it instead just shows the default “Refresh” menu. Is there something I’m missing? Code from the createPopupMenu function is below:

	def addTrend(evt):
		return

	def trendUnavailable(evt):
		return
	
	menuDict = {'addTrend' : addTrend}
	menu = system.gui.createPopupMenu(menuDict)
	menu.show(event)
1 Like

Figured out what the issue is. Instead of calling menu.show(event), I just needed to return menu, which adds the refresh menu option to the others.

1 Like