- Notifications
You must be signed in to change notification settings - Fork22
Closed as not planned
Description
When I implementedSliceWidget
, I manually built the GUI and widgets using qtpy. It would make much nicer code if this was done withmagicgui
however. For an existing example of how to do this see:
napari-matplotlib/src/napari_matplotlib/scatter.py
Lines 130 to 136 in081d4b6
self._key_selection_widget=magicgui( | |
self._set_axis_keys, | |
x_axis_key={"choices":self._get_valid_axis_keys}, | |
y_axis_key={"choices":self._get_valid_axis_keys}, | |
call_button="plot", | |
) | |
self.layout().addWidget(self._key_selection_widget.native) |