def undraw_entity(entity, win): if win is not None: p = Point(entity.x_pos, entity.y_pos) p.setOutline("red") p.draw(win)