title: Python Pyglet Window Force Close
body: <p>I'm working on a pyglet application in Python. It is a graphics module, and I'm using it to build a chess game. I've finished the code but I can't seem to close the pyglet window. My intention was to have the window be closed when a king was killed. I tried window.exit(). "window" is my pyglet window object. I'm not sure where else to go. My code is several thousand lines so posting it here wouldn't prove useful. Any suggestions would be appreciated.</p>