title: Python using turtle button
body: <p>I am attempting for a homework assignment to implement Simon Says in python. I'm trying to do it using the turtle library (a requirement). </p>
  
  <p>However, I've run into a stumbling block in that while I can get the screen to register click events (currently just printing the x,y coordinates) I can't get it to wait for a click event.</p>
  
  <p>Specifically what I'm planning on doing is having areas on the screen that when they click within that location it is considered as if they had clicked a button. Screen clears and game does whatever. </p>
  
  <p>However, in experiments in trying to get a working 'button' all that it does is set it so it prints the x,y coordinates but the rest of the program finishes. Didn't wait for the user to click anything. I tried a blocking method of...</p>
  
  <pre><code>while clicked == False:
      pass
  </code></pre>
  
  <p>or</p>
  
  <pre><code>while clicked == False:
      time.sleep(1)
  </code></pre>
  
  <p>but both methods hangs the program until I manually interrupt and then it'll print the clicks.</p>
  
  <p>Am I missing an option somewhere?</p>