Textbox Properties: Text does not match the borders of the box


before my participants start the dot probe task, I have a few questions which require a free response. For that, I`m using the textbox.

The problem is, that the text does not match the box, in which I want the participants to tipe their answers in.
Secondly, as you can see in the picture below psychopy puts gaps randomly in between the tiped text.

Does anyone know how I can match the text to the size of the box and how I can fix the gap problem?

Thank you so much!

What version of PsychoPy are you using? We changed how Textbox :textbox: lays itself out quite significantly in the latest release (2022.1.1) so there’s a good chance this is among the various bugs this fixes!

I also notice “Flip Vertical” is ticked - in the latest version this flips all text upside down, but in previous versions it wasn’t fully implemented so it may be this which is causing the weird behaviour.

1 Like

Thank you for your answer!
I tried unticking “Flip Vertical” but unfortunately it didn’t change anything.
I’m using the version (2021.2.3). Could an update possibly solve this problem?
I am a little worried that my experiment might not work after I update PsychoPy.

I think it’s likely that an update will fix this as it’s an area we’ve changed a lot specifically between 2021.2.3 and 2022.1.1, and when I recreate your textbox in 2022.1.1 I don’t get this bug.

Your experiment should still work in the latest version! To be safe though, I would recommend copying the .psyexp file somewhere before opening it in the new version, so that if anything does go wrong you can always reinstall 2021.2.3 and revert back to the backed up experiment. If your experiment is synced to Pavlovia, you can also use the GitLab interface in Pavlovia to revert the project back to a previous sync at any time.

Actually, just to check, are you getting this error when running locally or online? The changes I’m talking about are in the code used when running locally, but online is in a completely different programming language so if the bug is there then it’s a different story.

Thank you so much!
I’m getting this error locally. But somehow, I can’t download the latest PsychoPy Version.




I used the zip file from this website Release PsychoPy 2022.1.1 · psychopy/psychopy · GitHub and it didn’t work (pictures above). Unfortunaltely, neither did the [StandalonePsychoPy-2022.1.1-win64.exe].

What error message do you get when installing from the .exe?

Thank you so much for your help!
Somehow the installation worked and now the bug from the textbox is gone! :blush:

1 Like