Mar-20-2020, 06:11 PM
It's ok I found it ! I just created 2 different targets just for different font and ask to draw one or the other depending on StimuliType column.
target = visual.TextStim(w, text="", color="white", height=sizeC, font="Courier New", pos=[0,yFirstThird]) target2 = visual.TextStim(w, text="", color="white", height=sizeC, font="BACS2sans", pos=[0,yFirstThird]) ... for i in range(len(d)): ... target.text = d.iloc[i,0] target2.text = d.iloc[i,0] for n in range(nCyWord): if d.iloc[i,3]=="PL": target2.draw() w.flip() else: target.draw() w.flip()Still some problems with the code but I'll tell you if I'm stuck. You really help me there with the row thing, thanks.