Typed responses§

PsychoPy now has an editable text box component to get typed responses. It is under development, but worth touching on.

1

textBox§

The texbox component is very similar to the text stimulus, except that we can make it ‘editable’

You can find the textbox component under the ‘responses’ section of the compontent panel.

2

textBox§

When asking participants to submit a response, remember all keys will be watched by the textbox. So, if you don’t want any keys to end the trial use a mouse click to submit the response and end the trial.

If you want speeded responses, perhaps you want to use a key repsonse component and end the routine when a specific key is pressed (e.g. ‘return’)

3

textBox§

We can check the accuracy of responses, but usually this will be via a string comparison. e.g:

if textbox.text == corrAns:
        feedback = 'correct!'
else:
    feedback= 'incorrect'

This means we should be very careful as checks will be case and space sensitive.

4

Exercise§

Make a digit span task. Participants will see 3 numbers and type their response. We need:

5

What next?§

Extending Builder with code

6