I'm trying to learn Python. I need this loop to keep rolling until I click on the screen.
I tried using win.getMouse
but it's not working.
win = GraphWin("game of life", 600, 600)
win.setCoords(-1, -3, s+1, s+1)
q = True
while q:
board = iterate(board)
x = 0
while x < s:
y = 0
while y < s:
update_color(x, y, board, rec)
y = y + 1
x = x + 1
if win.getMouse():
q = False