# Right click menu not showing

**URL:** <https://forum.inductiveautomation.com/t/right-click-menu-not-showing/2562>\
**Category:** Ignition\
**Created:** [January 26, 2011, 9:30pm UTC](https://forum.inductiveautomation.com/t/right-click-menu-not-showing/2562 "2011-01-26T21:30:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [January 26, 2011, 9:30pm UTC](https://forum.inductiveautomation.com/t/right-click-menu-not-showing/2562/1 "2011-01-26T21:30:52Z")

</div>

I’m sure it’s something simple I’m doing wrong.

Here is the event handler tied to the mouse clicked event:

`if event.button == event.BUTTON1:
    app.breaker.operate(event)
else:
    menu = app.breaker.getContextMenu()
    menu.show(event)
`  
and here is app.breaker.getContextMenu()

[code]def getContextMenu():  
import system,app

# open the breaker screen

def breaker(event):  
import system,app  
system.nav.openWindow(‘BreakerControl’, {‘Device’ :‘devicename’, ‘Site’ : ‘Southeast’})  
system.nav.centerWindow(‘BreakerControl’)

# Finally, create the actual popup menu and return it

contextMenu = system.gui.createPopupMenu([“Breaker”],[breaker])

return contextMenu[/code]

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [January 26, 2011, 11:50pm UTC](https://forum.inductiveautomation.com/t/right-click-menu-not-showing/2562/2 "2011-01-26T23:50:03Z")

</div>

The problem is that the event is not a popup trigger. The mouseReleased event for Windows is a popup trigger for example. However, you can force the menu to show up even on events that are not popup triggers by doing the following:`menu = app.breaker.getContextMenu()
menu.show(event, event.x, event.y)`Hope this helps.

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [January 31, 2011, 4:48pm UTC](https://forum.inductiveautomation.com/t/right-click-menu-not-showing/2562/3 "2011-01-31T16:48:58Z")

</div>

Thanks Travis,

That did it.
