Skip to content

nd-widget UI controls - #1096

Draft
FlynnOConnell wants to merge 7 commits into
mainfrom
ui/ndw-controls
Draft

FlynnOConnell wants to merge 7 commits into
mainfrom
ui/ndw-controls

Conversation

@FlynnOConnell

@FlynnOConnell FlynnOConnell commented Sep 27, 2026 •

Copy link
Copy Markdown
Collaborator

Type of PR:

  • minor/trivial bugfix
  • other minor/trivial change (ex: small changes to docs, typos, etc.)
  • new features: Reference the issue that describes the new feature and outlines the implementation, this helps facilitate rapid review and approval of your PR.

Configurable NDwidgetUI. See motivation here. Attempt 2, right panel is the desired look.

I want the ability to hide the title/controls.

ui_kwargs=None
cfg_default
ui_kwargs={"playback": False}
cfg_no_playback
ui_kwargs={"title": None}
cfg_no_title
ui_kwargs={"title": None, "playback": False}
cfg_sliders_only
ui_kwargs={"visible": False}
cfg_hidden

Should be easy enough to hook up to a right click menu for the bottom?

@FlynnOConnell
FlynnOConnell marked this pull request as draft September 27, 2026 23:40
@github-actions

Copy link
Copy Markdown

📚 Docs preview built and uploaded! https://www.fastplotlib.org/ver/ui/ndw-controls

@FlynnOConnell

Copy link
Copy Markdown
Collaborator Author

oops looks like we need account for toolbar space
image

Comment thread fastplotlib/ui/_base.py
Comment on lines +294 to +304
@property
def visible(self) -> bool:
"""whether the window is drawn. A hidden edge window reserves no canvas space"""
return self._visible

@visible.setter
def visible(self, visible: bool):
self._visible = bool(visible)
# reserving windows change the layout when hidden or shown
if self._reserves and self._figure is not None:
self._figure._fpl_reset_layout()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is redundant since collapsed and size=0 exist?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants