In this recipe, we used the OpenGL library directly from Python. We created our own window without having to use any other Python GUI framework. We explored a few of the many OpenGL functions and created working programs.
A good, short introduction to OpenGL and how to use it from Python can be found at https://noobtuts.com/python/opengl-introduction.