Révision 11 PyOpenGL-Demo/redbook/double.py

double.py (revision 11)
1
#!/usr/bin/python
1
#!/usr/bin/env python3
2 2

  
3 3
# This is statement is required by the build system to query build info
4 4
if __name__ == '__build__':
5
	raise Exception
5
	raise(Exception)
6 6

  
7 7
'''
8 8
double.c from the Redbook examples.  
......
62 62
  from OpenGL.GL import *
63 63
  from OpenGL.GLU import *
64 64
except:
65
  print '''
65
  print('''
66 66
ERROR: PyOpenGL not installed properly.  
67
        '''
67
        ''')
68 68
  sys.exit()
69 69

  
70 70

  
......
113 113
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB)
114 114
glutInitWindowSize(250, 250)
115 115
glutInitWindowPosition(100, 100)
116
glutCreateWindow('Double')
116
glutCreateWindow(b'Double')
117 117
init()
118 118
glutDisplayFunc(display)
119 119
glutReshapeFunc(reshape)

Formats disponibles : Unified diff