Question: from turtle import Turtle, mainloop class Etch(Turtle): def __init__(self): super().__init__() #calls the init of Turtle self.screen = self.getscreen() self.color('blue') self.shape('turtle') self.pensize(2) self.distance = 5 self.turn
WOR Problem 1 (50 XP): Modify the Etch class in EtchASketch.py so that the turtle changes direction towards the position where you click with the mouse pointer. Problem 2 (50 XP): Modify the Etch class in EtchASketchpy so thathe turtle fills yith color by pressing on the keyboard key"f". Filling with color requires begin fill0 and end fill0 bat make sure that a single callback function handles both with the press of the "" key. Do not worry about the actual color; it will default to the current color the turtle has. [Hint: use a self.isFilling flag, set it to false and alternate its value upon each press of the "f" key]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
