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

hello.py (revision 11)
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
Converted to Python 6/00 by Jason Petrone
......
55 55
  from OpenGL.GL import *
56 56
  from OpenGL.GLU import *
57 57
except:
58
  print '''
58
  print('''
59 59
ERROR: PyOpenGL not installed properly.  
60
        '''
60
        ''')
61 61
  sys.exit()
62 62

  
63 63

  
......
98 98
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB)
99 99
glutInitWindowSize(250, 250)
100 100
glutInitWindowPosition(100, 100)
101
glutCreateWindow("hello")
101
glutCreateWindow(b"hello")
102 102
init()
103 103
glutDisplayFunc(display)
104 104
glutMainLoop()

Formats disponibles : Unified diff