From d7d3f5d54a680b04bfbcccf2b296f8b7acd2515b Mon Sep 17 00:00:00 2001 From: Alexander Goscinski Date: Tue, 17 Dec 2024 11:46:48 +0100 Subject: [PATCH] Rename in `CueFigure` the `no_toolbars` to `show_toolbars` The negatiton in the variable makes it less unintuitive to use. --- src/scwidgets/cue/_widget_cue_figure.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scwidgets/cue/_widget_cue_figure.py b/src/scwidgets/cue/_widget_cue_figure.py index 80a3f47..f6f671e 100644 --- a/src/scwidgets/cue/_widget_cue_figure.py +++ b/src/scwidgets/cue/_widget_cue_figure.py @@ -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 @@ -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, ): @@ -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