AllenCell / AllenCell/allencell-segmenter-ml

Investigate radio button behavior and best practices

Đang mở
#321 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
5
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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_

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.