Skip to content

Commit 8448110

Browse files
authored
Rename in CueFigure the no_toolbars to show_toolbars (#95)
The negation in the variable makes it less unintuitive to use.
1 parent 2b367a8 commit 8448110

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/scwidgets/cue/_widget_cue_figure.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class CueFigure(CueOutput):
3232
Specify `traitlets.All` to observe all traits.
3333
:param cued:
3434
Specifies if it is cued on initialization
35-
:param no_toolbars:
36-
Hide toolbars and headers when using widget mode
35+
:param show_toolbars:
36+
Hide toolbars and headers when using in widget mode.
3737
:param css_syle:
3838
- **base**: the css style of the box during initialization
3939
- **cue**: the css style that is added when :param
@@ -50,7 +50,7 @@ def __init__(
5050
None, str, List[str], List[List[str]], Sentinel
5151
] = None,
5252
cued: bool = True,
53-
no_toolbars: bool = True,
53+
show_toolbars: bool = False,
5454
css_style: Optional[dict] = None,
5555
**kwargs,
5656
):
@@ -87,7 +87,7 @@ def __init__(
8787
"that should be supported on all systems."
8888
)
8989

90-
if no_toolbars:
90+
if show_toolbars:
9191
# hides unnecessary elements shown with %matplotlib widget
9292
self.figure.canvas.header_visible = False
9393
self.figure.canvas.footer_visible = False

0 commit comments

Comments
 (0)