I have recently been messing around with the turtle
module on PC and have come up with a few handy programs. I then became curious about the possibilities on Pythonista. I am attempting to make a simple program where the title will move to where the user taps. The onclick()
does not seem to work. I will include the code I was trying to use below. How would I make a program like this and is there any documentation on turtle in Pythonista (I couldn’t find any)?
Code:
from turtle import *
speed(0)
screen = Screen()
def moveTo(x, y):
setpos(x, y)
screen.onclick(moveTo)
screen.listen()