diff --git a/vacuum-agent/__main__.py b/vacuum-agent/__main__.py index 3bb2525..99f0c2b 100644 --- a/vacuum-agent/__main__.py +++ b/vacuum-agent/__main__.py @@ -144,7 +144,8 @@ def draw_agent(self, position: Position): pen.setWidth(3) pen.setColor(Qt.red) if self.agent_rect: - self.agent_rect.setRect(QRectF(position.x - 40, position.y - 40, 80, 80)) + self.agent_rect.setRect( + QRectF(position.x - 40, position.y - 40, 80, 80)) else: self.agent_rect = self.scene.addRect(QRectF(position.x - 40, position.y - 40, 80, 80), pen=pen)