viewer.addChild(windowManager.getRootNode()) viewer.addWindowManagerEventHandler(windowManager) # We must also tell the windowing framework how to locate resources. # A resource may be a xml file or image files. # This is fixed by setting the default resource locator class. resourceLocator = csp.cspsim.ResourceLocator() resourceLocator.addFolder("../data/fonts") resourceLocator.addFolder("../data") resourceLocator.addFolder("../data/ui") resourceLocator.addFolder("../data/ui/themes/default") resourceLocator.addFolder("../data/ui/localization/english") csp.cspsim.setDefaultResourceLocator(resourceLocator) # Create the background window that covers the entire screen. desktopWindow = Desktop() windowManager.show(desktopWindow) desktopWindow.maximizeWindow() # We do want a menu at the top of the screen. window = TopMenu(None) windowManager.show(window) # And we want the main menu. window = MainMenu(None) windowManager.show(window) # We have setup a viewer. We have added windows to the scene. So # lets run the rendering loop. viewer.run() except csp.cspsim.SerializationException, message: