def showWindow(self): GLFW.glfwMakeContextCurrent(self.__window) self.__initialize() while not GLFW.glfwWindowShouldClose(self.__window): self.__loop(self) GLFW.glfwTerminate()
def should_draw(self): return self._window and not glfw.glfwWindowShouldClose(self._window)