mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
show window events for debugging
This commit is contained in:
parent
632d891d82
commit
1843165139
@ -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.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user