v0.1.0
This is the first minor release. It's much easier to customize buttons and their actions.
New Features
- Wrapper functions that can set attributes to push buttons itself.
@set_options
can change parameter options of method arguments just likemagicgui
.@click
can set button properties related to clicking, or connect special behaviors to button click event, such as disabling or hiding buttons.@button_design
can change the design of push buttons. Currently support button size including min/max, font size, font family, text color, background color, icon and icon size.
__post_init__
method can be called after__init__
.- This is useful when you want to append other widgets after all the methods are converted to buttons (If
self.append
is called inside__init__
then the widget will appear on the top of the main widget).
- This is useful when you want to append other widgets after all the methods are converted to buttons (If
- Custom widgets (
Figure
andSeparator
) are available inmagicclass.widgets
.Figure
is amatplotlib
figure canvas widget. You can directly append it toContainer
widgets.Separator
is a simple separator.
- You can suppress popup by the option
@magicclass(popup=False)
.
Improvements
- Methods are sorted in the same order as the order in the source code.
- Each method remembers the last input and will be recalled on the next function call.
napari.Viewer
was imported in a weird timing. Now it's fixed.
Bug fixes
- Jupyter froze when GUI is build for the second time.
- Could not add multiple dock widgets to
napari
.