AllenCell / AllenCell/allencell-segmenter-ml

Investigate radio button behavior and best practices

Offen
#321 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
5
Forks
3
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

So the required behavior here is that the `yes_radio` should appear selected and the methods that get called when `click` occurs on `yes_radio` should be called. It might look something like:

```
self.yes_radio.setChecked(True)
self.no_radio.setChecked(False)
self._on_yes_radio_clicked()
```

What I'm wondering is whether using the `setChecked` will trigger the `click` event anyways? I'm not sure, but it seems like we would all benefit from understanding the radio buttons + associated events a bit better (I remember you mentioned radio groups at some point as well). I think for now I'm comfortable keeping this as is, but I'll make a ticket for general radio button investigation.

_Originally posted by @saeliddp in https://github.com/AllenCell/allencell-ml-segmenter/pull/287#discussion_r1602099116_

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.