def __init__(self, parent=None):
    super(GLWidget, self).__init__(parent)
    self.gear1 = 0
    self.gear2 = 0
    self.gear3 = 0
    self.xRot = 0
    self.yRot = 0
    self.zRot = 0
    self.gear1Rot = 0
    timer = QTimer(self)
    timer.timeout.connect(self.advanceGears)
    timer.start(20)
def __init__(self, parent=None):
    super(GLWidget, self).__init__(parent)
    self.gear1 = 0
    self.gear2 = 0
    self.gear3 = 0
    self.xRot = 0
    self.yRot = 0
    self.zRot = 0
    self.gear1Rot = 0
    timer = QTimer(self)
    timer.timeout.connect(self.advanceGears)
    timer.start(20)