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 table.changed event emitter #209

Merged
merged 3 commits into from
Apr 4, 2021

Conversation

tlambert03
Copy link
Member

closes #205 by adding a table_widget.changed eventEmitter.

with table_widget.changed.connect(callback), the callback function will receive an event (whenver any item of the table changes in the GUI), and the event.value will be a dict:
{'data': x, 'row': int, 'column': int, 'column_header': str, 'row_header': str}

@codecov
Copy link

codecov bot commented Apr 4, 2021

Codecov Report

Merging #209 (699fb19) into master (e021216) will increase coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #209      +/-   ##
==========================================
+ Coverage   90.04%   90.11%   +0.06%     
==========================================
  Files          29       29              
  Lines        2994     3005      +11     
==========================================
+ Hits         2696     2708      +12     
+ Misses        298      297       -1     
Impacted Files Coverage Δ
magicgui/backends/_qtpy/widgets.py 86.84% <100.00%> (+0.36%) ⬆️
magicgui/widgets/_protocols.py 99.44% <100.00%> (ø)
magicgui/widgets/_table.py 96.85% <100.00%> (+0.03%) ⬆️

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 e021216...699fb19. Read the comment docs.

@tlambert03 tlambert03 merged commit 2952776 into pyapp-kit:master Apr 4, 2021
@tlambert03 tlambert03 added the enhancement New feature or request label Apr 4, 2021
@tlambert03 tlambert03 deleted the table-cell-events branch April 4, 2021 23:29
@tlambert03 tlambert03 mentioned this pull request Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add table-cell change callbacks
1 participant