Skip to content

Rename in CueFigure the no_toolbars to show_toolbars #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading