Skip to content

[ENH]: provide public API for styling radio buttons #24583

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

Closed
drammock opened this issue Dec 2, 2022 · 1 comment · Fixed by #24838
Closed

[ENH]: provide public API for styling radio buttons #24583

drammock opened this issue Dec 2, 2022 · 1 comment · Fixed by #24838

Comments

@drammock
Copy link

drammock commented Dec 2, 2022

Problem

after #24455, we lost access to RadioButton circles through the public API. I'm requesting that there be a public way to style the individual radio button circles.

use case: Over at MNE-Python we use a set of RadioButtons in a signal annotation GUI (so users could select e.g. the "blink" or "motion artifact" button and then click-drag across the plot to add a corresponding annotation to that time span). We color-code those annotations so we need a way to access the radio button circles individually, to set the color, edge color, and alpha. We also set the size and linewidth to make the buttons easy to click and the colors easier to distinguish. Here's a screenshot:

Screenshot_2022-12-02_12-09-47

cc @larsoner

Proposed solution

make self._buttons public?

@anntzer
Copy link
Contributor

anntzer commented Dec 2, 2022

Sure, making buttons public seems reasonable as you have a real use case for that.

@tacaswell tacaswell added this to the v3.7.0 milestone Dec 3, 2022
@QuLogic QuLogic self-assigned this Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants