OS (e.g. Win10): Win 10
PsychoPy version (e.g. 1.84.x): 3
Standard Standalone? (y/n) If not then what?: y
What are you trying to achieve?: Participants should learn new words. After some training I want to check whether they remember the definition to the newly learned word. For that I want to put the target in the middle of the screen and put two definitions on the bottom left and right of the screen. One defintion should be corresponding to the target, one should be a definition of another word (so that it’s not recognition but matching).
What did you try to make it work?: I tried to use a code component looking like this (txt file including all definitions):
with open(‘definitions.txt’) as file: definitions = file.read().splitlines()
current_definition = definitions.pop()
In the routine I put a text component including $word from my conditions’ excel file, a text component including $current_definition and a text component including $definition
What specifically went wrong when you tried that?: The loop does not start + I know, that I do not have a link to the target so that none of the two definitions displayed will possibly be fitting to the target. However, with my little psychopy knowledge I do not know how to resolve this problem. Thankful for any help!
P.S.: I would also like to randomize where the correct definition will be displayed (bottom left or bottom right). I tried using the code explained here: Randomization of stimuli positions - Builder - PsychoPy but it didn’t work for me…