[solved] Trapping 'close' in Windows XP


23-05-2007 07:06:30

How can one detect if the user presses the 'close' X up at the top right of the window header? Not surprisingly, I'm getting a lingering python process after the window disappears ...


23-05-2007 07:37:00

Not sure how to detect in python-ogre when the user press the 'close' X button or why you get a lingering python process. For me I just checked if the renderWindow isClosed() in my input loop:

def loop(self):
return False

I have a simple example for this if you need it.


23-05-2007 08:07:42

Nope, that did it. Thanks again ;-)