To use double-buffering:
def draw(): glClear(GL_COLOR_BUFFER_BIT) ... glutSwapBuffers() glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB)