mouse visible only in some routines?

215 views
Skip to first unread message

susan

unread,
Mar 6, 2012, 12:02:13 PM3/6/12
to psychopy-users
Hello

I'm running an experiment where people give 4 responses during 1
trial. I'd like the mouse cursor only to be visible during the
routines when pts are giving a response, does anyone know if this is
possible?

If not, is it possible to move the cursor to a particular position at
the start of a routine - I want to avoid pts being able to see which
response they gave earlier on in the trial, which they can when the
mouse cursor doesn't move from last response.

Thanks for any help!

Susan

Jonathan Peirce

unread,
Mar 6, 2012, 1:07:59 PM3/6/12
to psychop...@googlegroups.com
PsychoPy's Window object has a method called setMouseVisible() and a window is created (called win) at the beginning of all builder scripts (compile to a script to have a look at what is generated).

So I think you'll be able to add somewhere in your experiment a code component that does this at then beginning of each repeat:
win.setMouseVisible(True)
or this:
win.setMouseVisible(False)

Maybe you want that to be based on some variable (e.g. in your excel file have a column of 1's and 0's for a variable called mouseVis):

if mouseVis:
    win.setMouseVisible(True)
else:
    win.setMouseVisible(False)

make sense?
Jon
-- 
Jonathan Peirce
Nottingham Visual Neuroscience

http://www.peirce.org.uk

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.

susan

unread,
Mar 6, 2012, 2:20:47 PM3/6/12
to psychopy-users
Thanks for the response, I'll give that a try!

Susan

On Mar 6, 6:07 pm, Jonathan Peirce <jonathan.pei...@nottingham.ac.uk>
wrote:
Reply all
Reply to author
Forward
0 new messages