AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
TypeError: 'NoneType' object has no attribute '_getitem_' If self.prevPos self.lastPos: return True For days I am getting the following error message:įile "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.83.01-py2.7.egg\psychopy\event.py", line 421, in mouseMoved I tried to make up the biggest parts of the experiment within the builder view and then to insert the "mouseMoved"solution by Lily in a code component. I am still facing the same problem as you described here (trying to run an experiment on a windows tablet, wanting to measure reaction times for decisions indicated via touches on the tablet (and also the position of the touch has to be recorded) but only double-clicks get counted).Įven worse: I am a total beginner with Python. Sorry for bothering you, though all these initiaI posts are a little older. I tried 1,000,000 things, including every possible strategy one could think of for changing this feature on the surface itself. There is something different between the touch aspect and the mouse. The mouse itself, however, will trigger mouse.getPressed() on a single click. mouse.getPressed() just returns unless there is a double click. For some reason the surface touch was different (I suspect because of the multi-touch features / windows 8/ being possessed). I typically use an Elo Touch screen and that has always responded like a regular mouse (as if the computer didn't know any difference), so this was completely baffling for me. For some reason it always waited for double-clicks instead of the single-click, which I needed for reaction time. The "mouseMoved" solution provided by Lily is very clever and also worked for me! I was having difficulty getting a microsoft surface (touch screen) to register mouse-clicks. I just wanted to reply to this thread so that other people who are searching for specific solutions might find answers more effectively.
0 Comments
Read More
Leave a Reply. |