-
Notifications
You must be signed in to change notification settings - Fork 53
auto connect a ipywidget slider to a linear and linear region selector #298
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
Conversation
ipywidget -> selector is working well, selector -> ipywidget is not working well if the step size is not 1, it's wonky and jumpy |
ok this works now, made an attr |
…operty for linear and linearregion
Implemented for @clewis7 will merge after your review linear-2023-09-09_20.46.01.mp4linear_region-2023-09-09_20.47.01.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly looks good to me, I think just some more code comments would be helpful for understanding what is going on
From what I see, and correct me if I am wrong...
A user will create an ipywidget slider and then can add this to a linear selector using the "add" method; internally you set up the widget to have bidirectional linkage with the associated linear selector
A given selector looks like it can have more than one associated ipywidget, which are managed by a private list
Yes, they add a handler.
yes |
implements #297 for int and float sliders
@minel-arinel
Usage: