def initializeGL(self):
    self.gl = self.context().versionFunctions()
    self.gl.initializeOpenGLFunctions()
    lightPos = (5.0, 5.0, 10.0, 1.0)
    reflectance1 = (0.8, 0.1, 0.0, 1.0)
    reflectance2 = (0.0, 0.8, 0.2, 1.0)
    reflectance3 = (0.2, 0.2, 1.0, 1.0)
    self.gl.glLightfv(self.gl.GL_LIGHT0, self.gl.GL_POSITION, lightPos)
    self.gl.glEnable(self.gl.GL_LIGHTING)
    self.gl.glEnable(self.gl.GL_LIGHT0)
    self.gl.glEnable(self.gl.GL_DEPTH_TEST)
    self.gear1 = self.makeGear(reflectance1, 1.0, 4.0, 1.0, 0.7, 20)
    self.gear2 = self.makeGear(reflectance2, 0.5, 2.0, 2.0, 0.7, 10)
    self.gear3 = self.makeGear(reflectance3, 1.3, 2.0, 0.5, 0.7, 10)
    self.gl.glEnable(self.gl.GL_NORMALIZE)
    self.gl.glClearColor(0.0, 0.0, 0.0, 1.0)
def initializeGL(self):
    self.gl = self.context().versionFunctions()
    self.gl.initializeOpenGLFunctions()
    lightPos = (5.0, 5.0, 10.0, 1.0)
    reflectance1 = (0.8, 0.1, 0.0, 1.0)
    reflectance2 = (0.0, 0.8, 0.2, 1.0)
    reflectance3 = (0.2, 0.2, 1.0, 1.0)
    self.gl.glLightfv(self.gl.GL_LIGHT0, self.gl.GL_POSITION, lightPos)
    self.gl.glEnable(self.gl.GL_LIGHTING)
    self.gl.glEnable(self.gl.GL_LIGHT0)
    self.gl.glEnable(self.gl.GL_DEPTH_TEST)
    self.gear1 = self.makeGear(reflectance1, 1.0, 4.0, 1.0, 0.7, 20)
    self.gear2 = self.makeGear(reflectance2, 0.5, 2.0, 2.0, 0.7, 10)
    self.gear3 = self.makeGear(reflectance3, 1.3, 2.0, 0.5, 0.7, 10)
    self.gl.glEnable(self.gl.GL_NORMALIZE)
    self.gl.glClearColor(0.0, 0.0, 0.0, 1.0)