title: How to detect that the user has clicked on the screen in a GraphWin?
body: <p>I'm trying to learn Python. I need this loop to keep rolling until I click on the screen.</p>
  <p>I tried using <code>win.getMouse</code> but it's not working.</p>
  <pre><code>win = GraphWin(&quot;game of life&quot;, 600, 600)    
  win.setCoords(-1, -3, s+1, s+1)
  
  q = True
  while q:
      board = iterate(board)
      x = 0
      while x &lt; s:
          y = 0
          while y &lt; s:
              update_color(x, y, board, rec)
              y = y + 1
          x = x + 1
      if win.getMouse():
          q = False
  </code></pre>