turtle.TurtleScreen._ondrag¶
-
TurtleScreen.
_ondrag
(item, fun, num=1, add=None)¶ Bind fun to mouse-move-event (with pressed mouse button) on turtle. fun must be a function with two arguments, the coordinates of the actual mouse position on the canvas. num, the number of the mouse-button defaults to 1
Every sequence of mouse-move-events on a turtle is preceded by a mouse-click event on that turtle.