示例#1
0
 def close(self):
     glfw.glfwSetWindowShouldClose(self._native_window, True)
     __windows__.remove(self)
     __windows_to_remove__.append(self)
     for i in range(len(self._timer_stack)):
         handler, interval = self._timer_stack[i]
         self._clock.unschedule(handler)
     self.dispatch_event('on_close')
示例#2
0
 def close(self):
     glfw.glfwSetWindowShouldClose(self._native_window, True)
     glfw.glfwDestroyWindow(self._native_window)
     __windows__.remove(self)
     for i in range(len(self._timer_stack)):
         handler, interval = self._timer_stack[i]
         self._clock.unschedule(handler)
     self.dispatch_event('on_close')