When creating TextBox stim, it is impossible to set its units=‘pix’, as it instantly raises an error “AttributeError: ‘NoneType’ object has no attribute ‘_free’”. However, pixels are needed in order to place these boxes into specific position around the screen. What’s a workaround here?
text=“This textbox looks most like a textstim.”,
Your size of .1 is going to fail in pixels
Thank you for suggestion!
I tried to set it to different round values, it still throws the same error. Even if I delete size parameter at all.
Whenever I specify units=‘pix’ it raises an error. Even when position is default.
Just to check – are you using
' quotes or ‘smart’?
Although I don’t get an error, if I use ‘pix’ on win10 the textbox is not displayed, so I think there might be a bug there. In the meantime, if you need ‘pix’ units can you try using the TextBox2 stim instead of TextBox?