I have an experiment that requires a secondary GUI to input information after the inital “participant/session” GUI. I’m running this on a Mac OSX El Capitan (10.11.6). If I uncheck “full screen” in the settings, it displays fine. If it’s full screen, it’s clear that the gui is being displayed behind the window. A small example is below. By simply changing
False you can see that it won’t display. I haven’t had a chance to test on other platforms.
I suppose the alternative is to insert the GUI code before calling
visual.Window in the coder view, but this is not ideal because this is a project I’m handing off to someone else, and I’m trying to build the whole thing in Builder. Perhaps there’s another workaround I’m not aware of?
# Setup the Window #when fullscr = True, GUI doesn't show. Change to False and it will win = visual.Window( size=(1440, 900), fullscr=True, screen=0, allowGUI=True, allowStencil=False, monitor=u'testMonitor', color=[0,0,0], colorSpace='rgb', blendMode='avg', useFBO=True) trialClock = core.Clock() t = 0 trialClock.reset() # clock while True: # get current time t = trialClock.getTime() #show gui after 500ms if t>.5: dlg2 = gui.Dlg(title='a second gui',screen=0) dlg2.addField('enter a number:',0,tip='just enter a number') ok_data = dlg2.show() if dlg2.OK: core.wait(.5) break # check for quit (the Esc key) if event.getKeys(keyList=["escape"]): core.quit() # refresh the screen win.flip() win.close() core.quit()