Skip to content

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

Description

@drammock

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?

Activity

  1. anntzer commented on Dec 2, 2022

    @anntzer
    Contributor

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

  2. added this to the v3.7.0 milestone on Dec 3, 2022
  3. self-assigned this
    on Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions