PsychoPy version v. 2021 1.4
What are you trying to achieve?:
I have a simple experiment that displays words (in Thai) as stimuli in the middle of the screen. Ss then rate the words on a scale according to the dimension of interest. Everything was fine with the text component but it wouldn’t work with the Thai script. I changed to the TextBox component and it displays Thai script fine (with the appropriate font) but I cannot for the life of me get the stimulus to display in the centre of the screen.
What did you try to make it work?:
I’ve tried multiple settings in builder view. I’ve also tried using
HorzJust as code components but these don’t appear to do anything (the stimulus is presented in the centre of the screen but justified left; the first letter is the anchoring point from what I can tell).
It’s not a huge deal as such but when longer letter strings are presented it looks particularly awkward. I’ve attached a couple of screen shots showing the issue.
I hope there’s a solution to this. I’m quite a beginner so may be overlooking something of course.
Thanks in advance,
This is the code that shows the settings (automatically generated not written by me):
exptTClock = core.Clock()
item = visual.TextBox2(
win, text=’’, font=‘Sarabun’,
pos=[0.35, -0.3], letterHeight=0.06,
size=[1, 1], borderWidth=2.0,