expyfun.stimuli.crm_response_menu#

expyfun.stimuli.crm_response_menu(ec, colors=('blue', 'red', 'white', 'green'), numbers=('1', '2', '3', '4', '5', '6', '7', '8'), max_wait=inf, min_wait=0.0)[source]#

Create a mouse-driven CRM response menu.

Parameters:
ecinstance of ExperimentController

Parent EC.

colorslist | tuple

The colors to include in the menu.

numberslist | tuple

The numbers to include in the menu. Note that this follows the same conventions as other CRM functions, so that '1' and 1 have different behavior.

max_waitfloat

Duration after which control is returned if no button is clicked.

min_waitfloat

Duration for which to ignore button clicks.

Returns:
Responsetuple

A tuple containing the color and number selected as str. If the menu times out, (None, None) will be returned.

Examples using expyfun.stimuli.crm_response_menu#

Use the CRM corpus

Use the CRM corpus