Skip to content

Commit

Permalink
Improve formatting of all widgets being checked
Browse files Browse the repository at this point in the history
By not using the title formatting and using symbols a better overview is
given.
  • Loading branch information
agoscinski committed Nov 28, 2024
1 parent 4b64b65 commit 288db1d
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/scwidgets/check/_widget_check_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
)
)

Expand All @@ -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:
Expand Down

0 comments on commit 288db1d

Please sign in to comment.