I’ve got a mutli-monitor application that is working well. I’m just trying to iron out the last few little annoyances with navigation and I’ve run into something I can’t seem to solve.
I’m opening a unique main window on each desktop, and a common navigation window on each. So the navigation window is docked on the left side of each desktop.
The tabs trip performs as expected. Clicking on the tab opens the proper window in the desktop. The issue is startup of the client and setting up of the desktops. I would like the tab strip to show the proper selected window on startup. I can’t seem to figure out how to make that happen. I’ve tried this script:
def startupWindow():
from com.inductiveautomation.factorypmi.application import VisionDesktop
window = system.nav.desktop(VisionDesktop.CURRENT_DESKTOP.get()).getCurrentWindow()
system.gui.getParentWindow(event).getComponentForPath('Root Container.Tab Strip').selectedTab = window
print window
system.util.invokeLater(startupWindow,1000)
However both the navigation windows are showing the same window has been opened even though there are different windows open on each desktop.
Is the navigation window reporting the same window because I’m using the same navigation window on each desktop?