title: Python-Turtle-Effectively recreating buttons
body: <p>I'm doing an assignment using the turtle module, in which I'm creating a text based game. I'm fairly new to code in general and python and I'd like to simulate buttons to be pressed using the mouse. From looking at other threads, I'm fairly sure it is possible by moving the turtle to the mouseclick and then executing an action dependent on whether or not the python is within a designated area, which will be illustrated visually as the button. Because I'm inexperienced, I am unsure about how to specify the coordinates and check whether or not the turtle is within them. </p>
  
  <p>Here is what I started with:</p>
  
  <pre><code>from turtle import *
  import turtle as t
  from time import sleep
  import time as time
  
  pen= Turtle()
  bt=pen.clone()
  bt.pu()
  bt.setpos(-200,-200)
  menu=0
  
  pen.pu()
  pen.setpos(0,50)
  pen.write("1.Option1",align="center",font=("Chiller",40))
  time.sleep(0.5)
  
  pen.setpos(0,-30)
  pen.write("2.Option2",align="center",font=("Chiller",40))
  time.sleep(0.5)
  
  pen.setpos(0,-110)
  pen.write("3.Option3",align="center",font=("Chiller",40))
  menu=1
  
  while menu==1:
      screen= Screen()
      screen.onscreenclick(bt.goto)
      bt.getscreen()._root.mainloop()
  while menu==1:
      if bt.xcor&gt;(-200) and bt.xcor&lt;(200):
          if bt.ycor&gt;(20) and bt.ycor&lt;(80):
              pen.clear()
              pen.write("option 1")
          elif bt.ycor&gt;(-60) and bt.ycor&lt;(0):
              pen.clear()
              pen.write("option 2")
          elif bt.ycor&gt;(-140) and bt.ycor&lt;(-80):
              pen.clear()
              pen.write("option 3")
  </code></pre>
  
  <p>As I said, idiot language would be appreciated; can someone tell me why this doesn't work and possibly offer a solution. Also, I'm not entirely sure what the "screen=Screen()" bit does, I just found it in a different thread and implemented it...</p>
  
  <p>Thanks in advance for any help</p>