print('Waiting for device to connect. Quit manually with delete key.') while True: if 'delete' in event.getKeys(): print('quitting') quit_program.set() elif connected.is_set(): break # time elapsed until row/column switches exposition_time = 0.5 # store typed text in string variable text_typed = '' # object generating table with the letters generator = spell.TablesGenerator(pos=(150, 150)) # generate rows tables rows = generator.rows_generate() # generate cols tables cols = generator.cols_generate() # generate rows tables for PschoPy display rows_stim = generator.rows_stim_generate() # generate cols tables for PschoPy display cols_stim = generator.cols_stim_generate() # stim for typed text display text_target_stim = visual.TextStim(generator.win_main, text='Text target:\n' + text_target, font='Monospace',
quit_program = mp.Event() # time elapsed until row/column switches exposition_time = 0.5 # Color of the text to display (foreground) and the background. fg_color = 'white' bg_color = 'black' # store typed text in string variable text_typed = '' # object generating table with the letters generator = spell.TablesGenerator(pos=(500, 0), bg_color=bg_color, fg_color=fg_color) # generate rows tables rows = generator.rows_generate() # generate cols tables cols = generator.cols_generate() # generate rows tables for PschoPy display rows_stim = generator.rows_stim_generate() # generate cols tables for PschoPy display cols_stim = generator.cols_stim_generate() # stim for typed text display text_target_stim = visual.TextStim(generator.win_main, text='Text target:\n' + text_target,
while True: if 'delete' in event.getKeys(): print('quitting') quit_program.set() elif connected.is_set(): break # time elapsed until row/column switches exposition_time = 0.5 # store typed text in string variable text_typed = '' # object generating table with the letters generator = spell.TablesGenerator(pos=window_position) # generate rows tables rows = generator.rows_generate() # generate cols tables cols = generator.cols_generate() # generate rows tables for PschoPy display rows_stim = generator.rows_stim_generate() # generate cols tables for PschoPy display cols_stim = generator.cols_stim_generate() # stim for typed text display text_target_stim = visual.TextStim(generator.win_main, text='Text target:\n' + text_target, font='Monospace', pos=(0, 325), height=40,