Beispiel #1
0
 def saveManbar(self, n):
     """Save the state of the current manual bar as Manbar n in dimstim config file"""
     mbn = 'Manbar' + str(n)
     dc.set(mbn, 'xorigDeg', roundec(pix2deg(self.x - I.SCREENWIDTH / 2), ndec=6))
     dc.set(mbn, 'yorigDeg', roundec(pix2deg(self.y - I.SCREENHEIGHT / 2), ndec=6))
     dc.set(mbn, 'widthDeg', roundec(self.widthDeg, ndec=6))
     dc.set(mbn, 'heightDeg', roundec(self.heightDeg, ndec=6))
     dc.set(mbn, 'orioff', intround(self.ori))
     dc.update()
     self.fp.position = self.x, self.y
     self.brightenText = mbn # brighten the text for feedback
Beispiel #2
0
 def cycleEye(self):
     """Cycle the current eye state and save it to dimstim config file"""
     self.eyei = (self.eyei + 1) % len(C.EYESTATES)
     dc.set('Eye', 'open', C.EYESTATES[self.eyei])
     dc.update()
     self.brightenText = 'Eye' # brighten the text for feedback