So I have this code:
def restart(x, y):
if gameEnd == True:
if x >= -78.0 and x <= 78.0 and y >= -52.0 and y <= 52.0:
return True
screen.listen()
screen.onscreenclick(restart)
while True:
if restart():
break
when i click a certain area i want it to break the loop