mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -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):
|
def __windowEvent(self, win):
|
||||||
properties = win.getProperties()
|
properties = win.getProperties()
|
||||||
if win == self.win:
|
if win == self.win:
|
||||||
|
self.notify.info("Got window event: %s" % (repr(properties)))
|
||||||
if not properties.getOpen():
|
if not properties.getOpen():
|
||||||
# If the user closes the main window, we should exit.
|
# If the user closes the main window, we should exit.
|
||||||
self.notify.info("User closed main window.")
|
self.notify.info("User closed main window.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user