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

fix: fix binding of non ValueWidgets in guiclass #556

Merged
merged 10 commits into from
May 11, 2023

Conversation

tlambert03
Copy link
Member

fixes #555

the deeper issue is that FileEdit implements a very similar protocol to ValueWidget (has a changed event and value), but doesn't subclass it... so changes to the widget weren't getting bound to the model.

@codecov
Copy link

codecov bot commented Apr 28, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (55b561e) 89.76% compared to head (2f8b8d1) 89.76%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #556   +/-   ##
=======================================
  Coverage   89.76%   89.76%           
=======================================
  Files          37       37           
  Lines        4434     4437    +3     
=======================================
+ Hits         3980     3983    +3     
  Misses        454      454           
Impacted Files Coverage Δ
src/magicgui/schema/_guiclass.py 96.73% <100.00%> (+0.07%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@tlambert03 tlambert03 added the bug Something isn't working label Apr 28, 2023
@tlambert03 tlambert03 merged commit 32ca80d into pyapp-kit:main May 11, 2023
31 checks passed
@tlambert03 tlambert03 deleted the fix-guiclass branch May 11, 2023 20:56
@alisterburt
Copy link

Awesome work - thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

guiclass not updating model Path parameters
2 participants