from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.GLU import * import sys def clavier(*args): if args[0] == 'q': sys.exit() def main(): glutInit(sys.argv) glutInitDisplayMode(GLUT_RGB) glutInitWindowPosition(200,200) glutInitWindowSize(250,250) glutCreateWindow("Deuxieme Programme") glutKeyboardFunc(clavier) glutMainLoop() main()