Skip to content

Commit

Permalink
WIP: add option to not displace set all references button
Browse files Browse the repository at this point in the history
  • Loading branch information
agoscinski committed Jun 27, 2024
1 parent f98d5a1 commit 39d6c78
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/scwidgets/check/_widget_check_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,19 @@ def __init__(self, *args, **kwargs):
self._check_all_widgets_button = Button(description="Check all widgets")
self._output = Output()
kwargs["layout"] = kwargs.pop("layout", Layout(width="100%"))

self._display_set_all_references_button=kwargs.pop(
"display_set_all_references_button", False
)

buttons = []
if self._display_set_all_references_button:
buttons.append(self._set_all_references_button)
buttons.append(self._check_all_widgets_button)
VBox.__init__(
self,
[
HBox([self._set_all_references_button, self._check_all_widgets_button]),
HBox(buttons),
self._output,
],
*args,
Expand Down

0 comments on commit 39d6c78

Please sign in to comment.