Skip to content
Snippets Groups Projects
Commit 2563558d authored by Jäkel, Frank's avatar Jäkel, Frank
Browse files

Debug mode to switch between window and fullscreen.

parent 51441eb1
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ import warnings
warnings.filterwarnings('ignore')
# set some global variables
DEBUG = False
params = dict()
params['num_of_trials'] = 50 # a block always consists of 50 trials
params['fps'] = 60.0 # assume same frames per second for everyone
......@@ -75,7 +76,11 @@ def setup(intensity,task):
error('Unknown task: should be yes-no or 2AFC')
# this will create a warning that no monitor is specified
# but we don't care because we only have pixel images
win = visual.Window([800,600], allowGUI=True, fullscr=True,
if DEBUG:
win = visual.Window([800,600], allowGUI=True,
units='pix', color=[0.5,0.5,0.5])
else:
win = visual.Window(fullscr=True,
units='pix', color=[0.5,0.5,0.5])
win.setMouseVisible(False)
message = visual.TextStim(win, pos=[0,100],text=text)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment