From 8d74782078bd2eeeee1ec6ee805e906c02143d50 Mon Sep 17 00:00:00 2001 From: SnuffSocket <82658601+SnuffSocket@users.noreply.github.com> Date: Sun, 6 Oct 2024 22:09:25 +0300 Subject: [PATCH] Fix: Debug/Toggle prints --- BabbleApp/calib_settings_widget.py | 2 +- BabbleApp/camera_widget.py | 6 +++--- BabbleApp/utils/misc_utils.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/BabbleApp/calib_settings_widget.py b/BabbleApp/calib_settings_widget.py index 3c2df43..695a41e 100644 --- a/BabbleApp/calib_settings_widget.py +++ b/BabbleApp/calib_settings_widget.py @@ -186,7 +186,7 @@ class CalibSettingsWidget: window[element2].update(float(self.array[count1][count2])) #values[element2] = float(self.array[count1][count2]) self.refreshed = True - print('DEBUG: Refreshed') + #print('DEBUG: Refreshed') if self.config.calibration_mode != str(values[self.gui_calibration_mode]): self.config.calibration_mode = str(values[self.gui_calibration_mode]) diff --git a/BabbleApp/camera_widget.py b/BabbleApp/camera_widget.py index 651515a..89a18ad 100644 --- a/BabbleApp/camera_widget.py +++ b/BabbleApp/camera_widget.py @@ -304,15 +304,15 @@ class CameraWidget: window[self.gui_tracking_layout].update(visible=False) if event == self.use_calibration: - print("toggle event") + #print("toggle event") if self.settings_config.use_calibration == True: window[self.gui_restart_calibration].update(disabled = False) window[self.gui_stop_calibration].update(disabled = False) - print("Enabled") + #print("Enabled") else: window[self.gui_restart_calibration].update(disabled = True) window[self.gui_stop_calibration].update(disabled = True) - print("Disabled") + #print("Disabled") if event == "{}+UP".format(self.gui_roi_selection): # Event for mouse button up in ROI mode diff --git a/BabbleApp/utils/misc_utils.py b/BabbleApp/utils/misc_utils.py index a69823b..e07c533 100644 --- a/BabbleApp/utils/misc_utils.py +++ b/BabbleApp/utils/misc_utils.py @@ -104,7 +104,7 @@ def list_camera_names(): return ["Unsupported operating system"] def list_serial_ports(): - print("DEBUG: Listed Serial Ports") + #print("DEBUG: Listed Serial Ports") """ Lists serial port names :raises EnvironmentError: