Skip to content
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

Add the ability to hide a widget #17

Merged
merged 2 commits into from
May 24, 2020

Conversation

tlambert03
Copy link
Member

Adds the ability to hide widget for a given parameter:

    @magicgui(call_button="call", viewer={"visible": False})
    def takes_viewer(viewer: napari.Viewer):
        ...

@codecov
Copy link

codecov bot commented May 24, 2020

Codecov Report

Merging #17 into master will increase coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #17      +/-   ##
==========================================
+ Coverage   95.62%   95.69%   +0.07%     
==========================================
  Files           4        4              
  Lines         732      744      +12     
==========================================
+ Hits          700      712      +12     
  Misses         32       32              
Impacted Files Coverage Δ
magicgui/_tests/test_magicgui.py 92.16% <100.00%> (+0.22%) ⬆️
magicgui/core.py 98.80% <100.00%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0b0c930...2435d63. Read the comment docs.

@tlambert03 tlambert03 merged commit 448f8fd into pyapp-kit:master May 24, 2020
@tlambert03 tlambert03 deleted the add-visible-option branch May 24, 2020 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant