There is no magic click that will always work to close a window or exit a process. I highly recommend developing your experiment with fullscr = False, and then switching to fullscr = True in the final stages and to run items. (This switch is located in Builder> Experiment Settings> Screen> Full-screen window - uncheck the box or fullscr = False when creating a window instance in the code.) It is much easier to switch back and forth and close zombie windows if you are not in full-screen mode.
Builder "escape" , , - , Builder, "" , . ( Builder script !). , Experiment, , .
Coder, 2- , , , :
from psychopy import visual
w = visual.Window()
core.quit() - , script, (.. ).
, , PsychoPy, , , () - w1 :
from psychopy import visual
w1 = visual.Window()
w1.close()
w2 = visual.Window()
- , , . , .