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')
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')