OS (e.g. Win10): Windows 11 PsychoPy version (e.g. 1.84.x): 2024.1.5
I have a mouse component in several routines that worked prior to updating my Psychopy version but has not worked since. I do not see my mouse when I run the routine.
I have the same issue. Using an older version works for me (e.g. 2024.1.3).
Additionally (i have not tried this), you may be able to set the visibility using some custom code. For documentation see this is a useful webpage: psychopy.event - for keypresses and mouse clicks — PsychoPy v2024.1.5
I think you might need to go into experiment settings > screen > show mouse - is that checked?
Thanks,
Becca
PS. previously there was a bug where even if this was unchecked the mouse showed, so the fix might be what is causing the change in behaviour between versions here.
Hi Becca, it was unchecked. I checked it and it fixed the problem. What is the significance of this check-box? Shouldn’t experiments be set to no mouse by default and users should insert mouse components when they want it to appear?
Unfortunately, this means that the mouse shows up for the duration of the study, even when it’s not meant to be. Is there a workaround for this?
The solution given by Becca works, but this means that my mouse appears at all times in the study even when it is not meant to. I’m assuming this is a 2024.1.5 bug.
You should be able to turn the mouse to visible or invisible with a code snippet. mouse.setVisible(False) or mouse.setVisible(True)
At the moment the expected behaviour is that the experiment settings controls the visibility of the mouse throughout the experiment - there actually is no setting in the mouse component itself to control its visibility (though that is an interesting idea we could consider for sure!)
really worded!thanks,it confused me all the night,and reminder for others:after 2024.2 the experiment settings is the gear in the UI rather than in menu table.