 <p>Change</p> <pre><code>from OpenGL import * </code></pre> <p>to</p> <pre><code>from OpenGL.GL import * </code></pre> <p>However, I favor using this format:</p> <pre><code>import OpenGL.GL as GL import OpenGL.GLU as GLU import OpenGL.GLUT as GLUT window = 0 width, height = 500,400 def draw(): GL.glClear(GL.GL_COLOR_BUFFER_BIT |GL.GL_DEPTH_BUFFER_BIT) GL.glLoadIdentity() GLUT.glutSwapBuffers() #initialization GLUT.glutInit() GLUT.glutInitDisplayMode(GLUT.GLUT_RGBA | GLUT.GLUT_DOUBLE | GLUT.GLUT_ALPHA | GLUT.GLUT_DEPTH) GLUT.glutInitWindowSize(width,height) GLUT.glutInitWindowPosition(0,0) window = GLUT.glutCreateWindow(b"noobtute") GLUT.glutDisplayFunc(draw) GLUT.glutIdleFunc(draw) GLUT.glutMainLoop() </code></pre> <p>While not as compact, it helps me keep straight who's doing what. </p>