소스 검색

windowEvent shouldn't be private

David Rose 16 년 전
부모
커밋
c0a73aa93f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      direct/src/showbase/ShowBase.py

+ 2 - 2
direct/src/showbase/ShowBase.py

@@ -345,7 +345,7 @@ class ShowBase(DirectObject.DirectObject):
         # Now hang a hook on the window-event from Panda.  This allows
         # Now hang a hook on the window-event from Panda.  This allows
         # us to detect when the user resizes, minimizes, or closes the
         # us to detect when the user resizes, minimizes, or closes the
         # main window.
         # main window.
-        self.accept('window-event', self.__windowEvent)
+        self.accept('window-event', self.windowEvent)
 
 
         # Transition effects (fade, iris, etc)
         # Transition effects (fade, iris, etc)
         import Transitions
         import Transitions
@@ -2336,7 +2336,7 @@ class ShowBase(DirectObject.DirectObject):
         else:
         else:
             return Task.cont
             return Task.cont
 
 
-    def __windowEvent(self, win):
+    def windowEvent(self, win):
         if win == self.win:
         if win == self.win:
             properties = win.getProperties()
             properties = win.getProperties()
             self.notify.info("Got window event: %s" % (repr(properties)))
             self.notify.info("Got window event: %s" % (repr(properties)))