title: Python window immediately not responding when testing programs?
body: <p>I'm currently going through a book and using PyScripter.  Everything has been fine until I got to the part where we started dealing with GUIs.  </p>
  
  <p>Basically when I start a program it immediately doesn't respond.  One part is making a program where the user clicks 3 points in the window, then it makes a triangle from connecting the points.  As soon as the triangle is made it stops responding.  So it waits for whatever the program was meant to do to be done then messes up.</p>
  
  <p>Any help would be appreciated, thanks.</p>
  
  <pre><code>from graphics import *
  
  
  def main():
      win = GraphWin("Draw a Triangle")
      win.setCoords(0.0, 0.0, 10.0, 10.0)
      message = Text(Point(5, 0.5), "Click on three points")
      message.draw(win)
  
      p1 = win.getMouse()
      p1.draw(win)
      p2 = win.getMouse()
      p2.draw(win)
      p3 = win.getMouse()
      p3.draw(win)
  
      triangle = Polygon(p1,p2,p3)
      triangle.setFill("peachpuff")
      triangle.setOutline("cyan")
      triangle.draw(win)
  
      message.setText("click anywhere to quit")
      win.getMouse()
  
  main()
  </code></pre>
  
  <p>edit: updated with code. Like I said before the author of the book I'm reading made a toolkit from tk just to make it easy on beginners.</p>