from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.GLU import * import sys def ecran(): glClearColor(0.5,0.5,0.5,0.5) glClear(GL_COLOR_BUFFER_BIT) glutWireCube(1.0) glFlush() def main(): glutInit(sys.argv) glutInitDisplayMode(GLUT_RGBA) glutInitWindowPosition(100,100) glutInitWindowSize(320,320) glutCreateWindow("Un cube") glutDisplayFunc(ecran) glutMainLoop() main()