mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
windowEvent shouldn't be private
This commit is contained in:
parent
19e6ffd5ee
commit
c0a73aa93f
@ -345,7 +345,7 @@ class ShowBase(DirectObject.DirectObject):
|
||||
# Now hang a hook on the window-event from Panda. This allows
|
||||
# us to detect when the user resizes, minimizes, or closes the
|
||||
# main window.
|
||||
self.accept('window-event', self.__windowEvent)
|
||||
self.accept('window-event', self.windowEvent)
|
||||
|
||||
# Transition effects (fade, iris, etc)
|
||||
import Transitions
|
||||
@ -2336,7 +2336,7 @@ class ShowBase(DirectObject.DirectObject):
|
||||
else:
|
||||
return Task.cont
|
||||
|
||||
def __windowEvent(self, win):
|
||||
def windowEvent(self, win):
|
||||
if win == self.win:
|
||||
properties = win.getProperties()
|
||||
self.notify.info("Got window event: %s" % (repr(properties)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user