I want the pop-up to display in the order in the menu (Sunday, Monday, Tuesday, etc.)
however, when I right click in the the object, it shows it as Monday, Tuesday, Saturday, Thursday…
I tried adding the numbers in front of each menu item to see if that would force it to appear in the correct order.
How can I make it appear in the correct order?
Thanks
When you bring in a new Equipment Schedule, this is the default in onPopupTrigger:
Example for displaying a popup menu:
def showInfo(evt):
system.gui.messageBox('You clicked on item %s' % itemId)
menu = system.gui.createPopupMenu({'Item Info':showInfo})
menu.show(event)