How can I solve a problem with redrawing window while waiting for keypress? If I move the window while waiting, the window is erased.
from psychopy import visual, core, event win = visual.Window(allowGUI=True) msg1 = visual.TextStim(win, text=u"Hello world!") msg1.draw() win.flip() event.waitKeys() win.close() core.quit()
Do I have to wait for a key-press in a loop (in non-blocking way and call msg1.draw() and win.flip()), or there is another approach (using event.waitKeys() as showed)?
Usually I use fullscreen configuration and do not have this problem.