def add_boid(self, boid: Boid): """Add a boid to the canvas""" boid.canvas_handle = self.canvas.create_polygon(boid.points()) self.boids.append(boid)