Ok, this one has got to be stupid but can anyone tell me why the code below is not working. I have reduced it to a simple test…it is not throwing any error, but it is also not displaying a popupMenu.
import system, app
def swapArea(): system.nav.swapTo('App Selection') openwin = system.gui.getOpenedWindowNames() for win in openwin: if '/' in win: system.nav.closeWindow(win) adminPopup = system.gui.createPopupMenu(["Swap Process Area"],[swapArea]) return adminPopup[/code]
mousePressed and mouseReleased on a button
menu = app.nav.opAdminPopup()
Thanks for the help. I have been staring at the code for hours and I am not seeing it. If it is something really stupid please go easy on me