psychopy.org | Reference | Downloads | Github

Invalidating acceptKeys until respKeys pressed (rating scale)

#1

I have a rating scale component with the following custom code:

scale=None,
low=1, high=2, precision=1, labels=('Not acceptable (Q)', 'Acceptable (P)'),
showValue=False,
markerStart=-8,
noMouse=True,
respKeys=['q', 'p'],
acceptPreText='Press Q or P', 
acceptText='Space to continue',
acceptKeys=['space']

Right now, pressing Space as soon as the rating scale appears (without giving a response) continues to the next trial; I’d like instead for the Space key to be disabled/inactive until a response (Q or P) has been made.

Of the variables listed under the “Rating Scale” help page (singleClick, minTime etc), I think ratingScale.noResponse is the one that holds the solution - but I am not sure exactly how to use it in the above custom code, without resorting to the Coder (i.e. while keeping the rating scale as a component in the Builder).

Any help much appreciated!!

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 3.1.0

Invalidate acceptKeys until respKeys pressed (rating scale)
#3

I still haven’t found a solution for this. Any suggestions at all?