From 288db1d1ad187eb0787df7c74c0c4900dc4b597f Mon Sep 17 00:00:00 2001 From: Alexander Goscinski Date: Thu, 28 Nov 2024 16:44:31 +0100 Subject: [PATCH] Improve formatting of all widgets being checked By not using the title formatting and using symbols a better overview is given. --- src/scwidgets/check/_widget_check_registry.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/scwidgets/check/_widget_check_registry.py b/src/scwidgets/check/_widget_check_registry.py index bcc8e34..1edf36e 100644 --- a/src/scwidgets/check/_widget_check_registry.py +++ b/src/scwidgets/check/_widget_check_registry.py @@ -301,9 +301,7 @@ def _on_click_check_all_widgets_button(self, change: dict): ]: print( Formatter.color_error_message( - Formatter.format_title_message( - f"Widget {self._names[widget]} raised error." - ) + f"Widget {self._names[widget]}: ‼ (error)" ) ) @@ -314,19 +312,13 @@ def _on_click_check_all_widgets_button(self, change: dict): ]: print( Formatter.color_success_message( - Formatter.format_title_message( - f"Widget {self._names[widget]} all checks " - f"were successful." - ) + f"Widget {self._names[widget]}: ✓ (success)" ) ) else: print( Formatter.color_error_message( - Formatter.format_title_message( - f"Widget {self._names[widget]} not all checks " - "were successful." - ) + f"Widget {self._names[widget]}: 𐄂 (failed)" ) ) except Exception as exception: