-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve our 'Creating widgets' section #407
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lucyleeow did a round of review!
docs/howtos/extending/magicgui.md
Outdated
[](magicgui-return-annotations) for information how to use `napari` types to add | ||
output to the napari viewer. | ||
|
||
Note all type annotations *require* that the resulting widget be added to a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this mean? Why does the widget have to be added to a viewer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was definitely from Talley, and I wonder if it is a magicgui
thing? Where the type annotation magic doesn't work until its added to a window? 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amended, hopefully that is okay
Thank @DragaDoncila , I think I've addressed everything! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! 🎉
References and relevant issues
Follow on from #68
Description
create_widget
in any widget classmagicgui
function widgets as plugin contributions' to be next to the intro to magicgui function widgets