esdalmaijer / PyGaze

an open-source, cross-platform toolbox for minimal-effort programming of eye tracking experiments
www.pygaze.org
GNU General Public License v3.0
671 stars 211 forks source link

drift_correction in dummymode error #66

Closed hannehuygelier closed 8 years ago

hannehuygelier commented 8 years ago

When using the drift_correction in dummy mode and with disptype set to Psychopy, I get the following error messages:

1) FGC was not defined --> fixed this by importing the defaults into the script libdummytracker.py.

2) After that I get this error message: tracker.drift_correction(fix_triggered = False) File "C:\Python27\lib\site-packages\pygaze_eyetracker\libdummytracker.py", line 104, in drift_correction self.draw_drift_correction_target(pos[0], pos[1]) File "C:\Python27\lib\site-packages\pygaze_eyetracker\libdummytracker.py", line 404, in draw_drift_correction_target self.display.fill(self.screen) AttributeError: 'Window' object has no attribute 'fill'

I guess the .display.fill should be called on a display object and not a window object, but I'm not sure how to fix this the best way. Am I perhaps calling the drift_correction with the wrong arguments?