This is because the psychopath’s window is on top of everything else when fullscr=True, therefore, in your example, a dialog box is created but not displayed to the user, since the window is on top.
Present dialog box at the beginning
, : :
from psychopy import visual, gui
respInfo={'duration': ''}
respDlg = gui.DlgFromDict(respInfo)
win = visual.Window(fullscr=True)
, .
, :
from psychopy import visual, event, gui
win1 = visual.Window(fullscr=True)
stim = visual.TextStim(win1)
stim.draw()
win1.flip()
event.waitKeys()
win_background = visual.Window(fullscr=False, size=[5000, 5000], allowGUI=False)
win1.close()
respDict = {'duration':''}
gui.DlgFromDict(respDict)
win_background.close()
win2 = visual.Window(fullscr=True)
stim.win = win2
stim.text = 'entered duration:' + respDict['duration']
stim.draw()
win2.flip()
event.waitKeys()