OS (e.g. Win10): Win11
PsychoPy version (e.g. 1.84.x): v2024.2.4
Standard Standalone? (y/n) If not then what?: y
What are you trying to achieve?:
I’m hoping to get the window sizes in pixels at the beginning of the experiments and store them for later use.
What did you try to make it work?:
I looked at the Window documentation and tried what other people suggested in some previous discussions. For example:
screenWidth=psychopy.visual.window.size[0]
or
win = psychopy.visual.Window
screenWidth=win.size[0]
But nothing seems to work.
What specifically went wrong when you tried that?:
I get
AttributeError: module 'psychopy.visual.window' has no attribute 'size'
when I run this
screenWidth=psychopy.visual.window.size[0]
and I get
TypeError: 'property' object is not subscriptable
when I run
win = psychopy.visual.Window
screenWidth=win.size[0]
Thank you!!