Hi, I stumbled upon this problem in a mac os device. the same code runs perfectly on my windows laptop. the problem is that when opening an experiment in fullscreen mode, the screen would go completely black but the mouse is visible, no error no nothing. the experiment runs smoothly in windows mode (fullscr = False). and I am almost sure that this problem has nothing to do with the code or anything. to prove my point I used the demo codes available in the psychopy itself. hello world code. just a simple grey screen which says hello world. that’s it. runs perfectly in windows mode and goes completely black in fullscreen mode. mac os Big Sur
any ideas?
here’s the code for those who want it.
# Import key parts of the PsychoPy library:
from psychopy import visual, core
# Create a visual window:
win = visual.Window(units="height",fullscr=True)
# Create (but not yet display) some text:
msg1 = visual.TextBox2(win,
text=u"Hello world!",
font="Open Sans", letterHeight=0.1,
pos=(0, 0.2))
msg2 = visual.TextBox2(win,
text=u"\u00A1Hola mundo!",
font="Open Sans", letterHeight=0.1,
pos=(0, -0.2))
# Draw the text to the hidden visual buffer:
msg1.draw()
msg2.draw()
# Show the hidden buffer--everything that has been drawn since the last win.flip():
win.flip()
# Wait 3 seconds so people can see the message, then exit gracefully:
core.wait(3)
win.close()
core.quit()