Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python turtle get mouse position

canvas = turtle.getcanvas()
x, y = canvas.winfo_pointerx(), canvas.winfo_pointery()
# or
# x, y = canvas.winfo_pointerxy()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #turtle #mouse #position
ADD COMMENT
Topic
Name
7+1 =