Visual Search - Letters stay on screen after routine has finished

Hi,

I have built the Visual Search script via the YouTube tutorial which works fine, however, the issue that I am having is that I have created a new routine which will announce to the participant that the study is over and thank you for participating, but the stimuli still stays on the screen from the last routine. The study is that the screen is filled with many ‘Ls’ and that the participant needs to the find the letter ‘T’, after each trial the ‘Ls’ increase by 50 and so on, I believe that the issue is that in the code there is nothing to say that once the routine has finished the distractors should disappear. I just don’t know what code I would input.




Thank you!

If anyone is having trouble with this I figured out the solution, in End routine if you change ‘distractor.setAutoDraw(True)’ to ‘distractor.setAutoDraw(False)’ then it works.