psychopy.org | Reference | Downloads | Github

Trouble with the mouse cursor

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): v2020.2.4
Standard Standalone? (y/n) y
What are you trying to achieve?: I’m trying to make the cursor disappear while recording the mouse inputs by joystick component

What did you try to make it work?: I tried using event.mouse,setVisible(False) but that leads to an error with pygame not having this attribute then I tried to use event.mouse.set_visible(False)
that lead to another error with pygame
the first error I encountered AttributeError: module ‘pygame.mouse’ has no attribute ‘setVisibile’
the second error pygame.error: video system not initialized

Hi There,

Sounds like you are almost there! instead of event.mouse.setVisible you may just want mouse.setVisible(0) - Where ‘mouse’ refers to the name of the mouse component you are using :slight_smile:
Becca