psychopy.org | Reference | Downloads | Github

Text box to answer an open question

Hello,

For one of my experiments I need participants to answer an open question (e.g. “Please describe in a few words a typical day at work”). Is there some kind of text box where they could type their answer? If not, is there any alternative solution?

Thank you!

Hi,
I think you can obtain that with the GUI class, or by using the python function raw_input().
This is a brief example of the psychopy GUI:

from psychopy import gui

question = gui.Dlg()
question.addText("Please describe in a few words a typical day at work:")
question.addField("Answer:")
question.show()

You can find other ways to use it on this link http://www.psychopy.org/api/gui.html
I hope this helps.
Cheers
Emanuele

2 Likes

Thank you, I’ll give it a try with the GUI class!