show window events for debugging

This commit is contained in:
David Rose 2003-03-17 16:18:07 +00:00
parent 632d891d82
commit 1843165139

View File

@ -1164,6 +1164,7 @@ class ShowBase(DirectObject.DirectObject):
def __windowEvent(self, win):
properties = win.getProperties()
if win == self.win:
self.notify.info("Got window event: %s" % (repr(properties)))
if not properties.getOpen():
# If the user closes the main window, we should exit.
self.notify.info("User closed main window.")