I need to close the window from Panda3d, without the sys.exit() command. This is because I run an tkinter window as a startup window for changing the game settings and selecting a level.
The tkinter window opens and from there the game is started. But with sys.exit fired from the game, the whole application is closed. How can I avoid this, so the tkinter window remains open after the game window has closed?