-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
widgets: use a shared _Buttons class for {Radio,Check}Buttons #30997
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
base: main
Are you sure you want to change the base?
Conversation
For more consistency and similarity with RadioButtons
c5ee840 to
b1eb725
Compare
timhoffm
left a comment
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.
Please add an entry to widget_api.rst
|
|
||
|
|
||
| class CheckButtons(AxesWidget): | ||
| class _Buttons(AxesWidget): |
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.
Please add a docstring.
The class should be treated analogous to _SelectorWidget, including
The class itself is private and may be changed or removed without prior warning.
However, the public API it provides to subclasses is stable and considered
public on the subclasses.
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.
Please add a docstring.
Done.
Share all the trivial functions which are identical without any further modifications.
PR summary
A preparation refactoring commit for #30803 . Changes include:
PR checklist