From dafdbe42975769e0df160d2b5b3ca0f8189d6a08 Mon Sep 17 00:00:00 2001 From: Simon Alibert Date: Thu, 22 May 2025 17:52:44 +0200 Subject: [PATCH] Remove pygame prompt --- lerobot/common/motors/calibration_gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lerobot/common/motors/calibration_gui.py b/lerobot/common/motors/calibration_gui.py index de7b863be..1093b0761 100644 --- a/lerobot/common/motors/calibration_gui.py +++ b/lerobot/common/motors/calibration_gui.py @@ -13,8 +13,10 @@ # limitations under the License. import math +import os from dataclasses import dataclass +os.environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "1" import pygame from lerobot.common.motors import MotorCalibration, MotorsBus @@ -220,7 +222,6 @@ class RangeFinderGUI: m: bus.read("Present_Position", m, normalize=False) for motors in groups.values() for m in motors } - # pygame init pygame.init() self.font = pygame.font.Font(None, FONT_SIZE)