I am using Psychopy v1.85.3 (standalone version) on a win10 Laptop.
My problem: I noticed that the size of visual.Window() is influenced by whether I display a dialogue box before setting up a window. (This troubles me because I fear that the distortion will impact the size of my elements on screen.)
Let me illustrate with an example in code:
from psychopy import core, visual, gui
for i in ['Without preceeding GUI', 'With preceeding GUI']:
if i == 'With preceeding GUI':
# INFO DIALOGUE
dict = {'Item:':False}
dlg = gui.DlgFromDict(dict, 'Preceeding GUI')
# define a window
win = visual.Window(
size=(1536, 864), fullscr=True, screen=0,
allowGUI=False, allowStencil=False,
monitor='testMonitor', color=[0,0,0], colorSpace='rgb',
blendMode='avg', useFBO=True,
units='cm'
)
print 'win.size[0] = ', win.size[0]
print 'win.size[1] = ', win.size[1]
win.close()
core.quit()
This gives me the output:
##### Running: D:\scalingProblem.py #####
win.size[0] = 1536
win.size[1] = 864
1.4637 ERROR avbin.dll failed to load. Try importing psychopy.visual
as the first library (before anything that uses scipy)
and make sure that avbin is installed.
win.size[0] = 1920
win.size[1] = 1080
3.8151 WARNING User requested fullscreen with size [1536 864], but screen is actually [1920, 1080]. Using actual size
So, on the first run of the loop my screen size seems to be [1536, 864] and on my second it turns to [1920, 1080]. How is that possible and what does that mean?
What can I do to go sure that a lenght of one with units = ‘cm’ (for any visual object) will really be a centimeter on screen even after displaying a dialogue box?
Thank you for your help!