def close(self): if not self._window: return glfw.glfwRestoreWindow(self._window) del self.gui[:] self.gui.terminate() glfw.glfwDestroyWindow(self._window) glfw.glfwTerminate() del self.gui self._window = None
def destroy(self): glfw.glfwDestroyWindow(self._native_window)