Radiobuttons are duplicated during `reset_choices` in Qt <5.15.2
See original GitHub issueDescribe the bug
When creating a napari plugin and adding RadioButtons widget with magicgui, every radiobutton appears duplicated (see screenshot).
To Reproduce
Create a simple plugin consisting out of a single group of RadioButtons
from napari_plugin_engine import napari_hook_implementation
from magicgui import magicgui
def wrapper():
@magicgui (
choices = dict(widget_type='RadioButtons', label='Choices',
orientation='horizontal', choices=["A","B","C"])
)
def widget (
choices
):
pass
return widget
@napari_hook_implementation
def napari_experimental_provide_dock_widget():
return wrapper, {'name': 'BUG'}
if __name__ == '__main__':
import napari
with napari.gui_qt():
viewer = napari.Viewer()
key = ("BUG", "BUG")
viewer.window._add_plugin_dock_widget(key)
Screenshots
Environment (please complete the following information):
OS OSX 10.15.7
QT 5.15.1
napari 0.4.6
magicgui 0.2.8.dev14+g9590805
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Radio Buttons showing duplicate values in console
I'm using QT designer to try and make a couple of radio buttons with a label that shows which button I've selected in...
Read more >RadioButton QML Type | Qt Quick Controls 6.4.1
RadioButton presents an option button that can be toggled on (checked) or off (unchecked). Radio buttons are typically used to select one option...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

fixed in #198 … will release another patch release (0.2.9) shortly
Sure, thanks for the super fast response!
And yes, I didn’t see it in plain
magicguiso moving the napari might make sense.