I’m trying to develop a psychophysical eyetracking task by PsychoPy to be able to work with Eylink and Mouse simulation eyetracking. Indeed, I have two screens one for the experimenter and one for the subject.
I made a Window following code line below:
win = visual.Window(allowGUI=True, monitor=mon, units='pix', screen=1, color=(-0.2, -0.2, -0.2), fullscr=True, colorSpace='rgb')
Then, I configured the calibration target and calibration object and I put the “win” as their input argument:
calibrationTarget = visual.TargetStim(win, name='calibrationTarget', radius=100, fillColor='white', borderColor='white', lineWidth=5.0, innerRadius=2.0, innerFillColor='green', innerBorderColor='white', innerLineWidth=3.0, colorSpace='rgb', units="pix")
calibration = hardware.eyetracker.EyetrackerCalibration(win, eyetracker, calibrationTarget, units=None, colorSpace='rgb', progressMode='time', targetDur=1.5, expandScale=1.5, targetLayout='FIVE_POINTS', randomisePos=True, movementAnimation=True, targetDelay=1.0)
And after running calibration by the code line “calibration.run()”, for a moment a window is opening on the second screen then immediately the calibration window opens on the first screen.
Without using calibration, my task opens on the second screen.
I am very grateful for your help in advance.
I am using:
Python 3.8 (in 3.10 got the same result)
PsychoPy version 2022.2.4 (in previous versions also I got the same result)