(Psychopy Coder v.2022.2.4)
In an experiment i would like to create a scale to rate the confidence of the participant, with two labels, the left one being ‘uncertain’ and the right one ‘certain’. The scale is 1-100 but the numbers are not shown. I would like uncertain to be written in red, and certain in green. So far i could only change both labels to the same color, but not one for each.
I came to this :
label_1 = visual.TextStim(win, text=‘uncertain’, height=0.5, color=‘red’, colorSpace=‘rgb’)
label_2 = visual.TextStim(win, text=‘certain’, height=0.5, color=‘green’, colorSpace=‘rgb’)
rating_scale = visual.RatingScale(win=win, name=‘rating_scale’, marker=‘circle’,
size=1.5, pos=[0.0, -0.3], low=0, high=100, labels=[label_1, label_2], scale=‘’, showValue=False,
But when i run it, the labels are super weird, it says something like TextStim(class=<class etc.
Does anybody know how I could make this work please ?
Thanks, have a nice day!