Hello,
when I define a rating scale as follows:
my_scale = visual.RatingScale(
win, low=0, high=20, markerStart=10,
leftKeys='b',
rightKeys = 'r',
acceptKeys=['y','g'])
and then do
while my_scale.noResponse:
slider_checklist.draw()
text_checklist.draw()
win.flip()
participants can accept a response without having pressed one of rightKeys
or leftKeys
once.
Is there a way to allow the acceptKeys
only after the rightKeys
or leftKeys
were pressed?
Thanks in advance, Guido
PS:
I tried to use getHistory()
(like in while my_scale.noResponse and len(my_scale.getHistory()) > 2:
)
But that does not work because my_scale.getHistory()
is initially returns type None
. I also had no success when using a function that uses my_scale as input and checks if .noResponse
is False
and if the rightKeys
or leftKeys
were pressed.