Skip to content

Commit

Permalink
Rename in CueFigure the no_toolbars to show_toolbars (#95)
Browse files Browse the repository at this point in the history
The negation in the variable makes it less unintuitive to use.
  • Loading branch information
agoscinski authored Dec 17, 2024
1 parent 2b367a8 commit 8448110
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scwidgets/cue/_widget_cue_figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class CueFigure(CueOutput):
Specify `traitlets.All` to observe all traits.
:param cued:
Specifies if it is cued on initialization
:param no_toolbars:
Hide toolbars and headers when using widget mode
:param show_toolbars:
Hide toolbars and headers when using in widget mode.
:param css_syle:
- **base**: the css style of the box during initialization
- **cue**: the css style that is added when :param
Expand All @@ -50,7 +50,7 @@ def __init__(
None, str, List[str], List[List[str]], Sentinel
] = None,
cued: bool = True,
no_toolbars: bool = True,
show_toolbars: bool = False,
css_style: Optional[dict] = None,
**kwargs,
):
Expand Down Expand Up @@ -87,7 +87,7 @@ def __init__(
"that should be supported on all systems."
)

if no_toolbars:
if show_toolbars:
# hides unnecessary elements shown with %matplotlib widget
self.figure.canvas.header_visible = False
self.figure.canvas.footer_visible = False
Expand Down

0 comments on commit 8448110

Please sign in to comment.