Releases: pyapp-kit/magicgui
v0.5.0
Changelog
0.5.0 (2022-06-13)
Implemented enhancements:
- feat: add request_values convenience, shows modal dialog to request values #416 (tlambert03)
- Change to use adaptive step is SpinBox and FloatSpinBox #403 (Czaki)
- Make call_button public #391 (dstansby)
- Add scrollable widgets #388 (dstansby)
Fixed bugs:
- Return empty tuple for no selected files #415 (aeisenbarth)
- Block event emits during choices batch update #407 (aeisenbarth)
- Bug fix of type check in ListEdit #404 (hanjinliu)
- Fix bug with small default range in SpinBox #397 (Czaki)
- Fix bug in creation of RangeEdit using create_widget #396 (Czaki)
- Fix insertion of Container widget #394 (hanjinliu)
Tests & CI:
- fix napari CI test #417 (tlambert03)
- ci(dependabot): bump actions/setup-python from 1 to 3 #414 (dependabot[bot])
- ci(dependabot): bump codecov/codecov-action from 2 to 3 #413 (dependabot[bot])
- ci(dependabot): bump actions/checkout from 2 to 3 #412 (dependabot[bot])
- ci: add dependabot #411 (tlambert03)
- Fix typesafety tests #399 (tlambert03)
v0.4.0 (2022-03-25)
Documentation:
v0.4.0rc1 (2022-03-18)
Implemented enhancements:
Fixed bugs:
- Use empty string as null value for FileEdit #384 (brisvag)
- fix register_widget with widget subclass #376 (tlambert03)
Deprecated:
- Remove event deprecations strategy (for release 0.4.0) #368 (tlambert03)
Tests & CI:
- Check out napari repo instead of git+https #378 (jni)
- Test that bound values don't get called greedily upon widget creation #371 (tlambert03)
v0.3.7 (2022-02-12)
Merged pull requests:
- bump psygnal dep to 0.3.0 #369 (tlambert03)
v0.3.6 (2022-02-11)
Fixed bugs:
- Fix
_normalize_slot
private attr access, and fix annotation setter forward ref resolution #367 (tlambert03)
v0.3.5 (2022-02-07)
Implemented enhancements:
Fixed bugs:
- Add new type normalization TypeWrapper, fix builtin and optional ForwardRefs #362 (tlambert03)
- Fix changing choices on ComboBox #352 (tlambert03)
Tests & CI:
- fix tests in xvfb-action #366 (tlambert03)
Documentation:
- update napari examples #357 (tlambert03)
Merged pull requests:
- Do not package tests #365 (jaimergp)
- Make Table a ValueWidget #360 (tlambert03)
- Update build workflow #344 (tlambert03)
v0.3.4 (2022-01-01)
Implemented enhancements:
- support Qt6 #324 (tlambert03)
- Support partials and tz.curry #316 (tlambert03)
Fixed bugs:
- Fix buttons on PySide2 #343 (tlambert03)
- fix py3.10 test #339 (tlambert03)
- Skip bad parameter names in inject tooltip #336 (tlambert03)
- Relay signals from Container to Container #331 (hanjinliu)
- Fix readout visibility on slider
__init__
#329 (tlambert03) - Fix bug in Select widget value setter in direct API usage #326 (tlambert03)
Tests & CI:
- Pre commit ci update config #338 (tlambert03)
- Fixing a few test things #325 (tlambert03)
Documentation:
- adds waveform generator exemple #322 (glyg)
- add example of adding mpl FigureCanvas to widget #321 (tlambert03)
v0.3.3 (2021-11-08)
Implemented enhancements:
- Add update, asdict, and update_widget to FunctionGui #309 (tlambert03)
- Add support for python 3.10 #294 (tlambert03)
Fixed bugs:
- Fix deprecation events for psygnal 0.2 #311 (tlambert03)
v0.3.2 (2021-10-22)
Fixed bugs:
- Fix unbound variable in format_number #303 (tlambert03)
v0.3.1 (2021-10-21)
Implemented enhancements:
- Add stacklevel to provide better information about place of problem #302 (Czaki)
- Table widget updates #301 (hanjinliu)
v0.3.0 (2021-10-10)
Implemented enhancements:
- Return type from
register_type
, so that it can be used as a decorator #297 (tlambert03)
Deprecated:
- Remove
choices
deprecation warning from 0.2.0 #298 (tlambert03)
Documentation:
- add v0.3.0 migration guide #299 (tlambert03)
v0.3.0rc2 (2021-10-10)
[Full Changelog](https://github.com/napari/magicgui/compare/v0.3.0rc...
v0.4.0
Changelog
v0.4.0 (2022-03-25)
Documentation:
v0.4.0rc1 (2022-03-18)
Implemented enhancements:
Fixed bugs:
- Use empty string as null value for FileEdit #384 (brisvag)
- fix register_widget with widget subclass #376 (tlambert03)
Deprecated:
- Remove event deprecations strategy (for release 0.4.0) #368 (tlambert03)
Tests & CI:
- Check out napari repo instead of git+https #378 (jni)
- Test that bound values don't get called greedily upon widget creation #371 (tlambert03)
v0.3.7 (2022-02-12)
Merged pull requests:
- bump psygnal dep to 0.3.0 #369 (tlambert03)
v0.3.6 (2022-02-11)
Fixed bugs:
- Fix
_normalize_slot
private attr access, and fix annotation setter forward ref resolution #367 (tlambert03)
v0.3.5 (2022-02-07)
Implemented enhancements:
Fixed bugs:
- Add new type normalization TypeWrapper, fix builtin and optional ForwardRefs #362 (tlambert03)
- Fix changing choices on ComboBox #352 (tlambert03)
Tests & CI:
- fix tests in xvfb-action #366 (tlambert03)
Documentation:
- update napari examples #357 (tlambert03)
Merged pull requests:
- Do not package tests #365 (jaimergp)
- Make Table a ValueWidget #360 (tlambert03)
- Update build workflow #344 (tlambert03)
v0.3.4 (2022-01-01)
Implemented enhancements:
- support Qt6 #324 (tlambert03)
- Support partials and tz.curry #316 (tlambert03)
Fixed bugs:
- Fix buttons on PySide2 #343 (tlambert03)
- fix py3.10 test #339 (tlambert03)
- Skip bad parameter names in inject tooltip #336 (tlambert03)
- Relay signals from Container to Container #331 (hanjinliu)
- Fix readout visibility on slider
__init__
#329 (tlambert03) - Fix bug in Select widget value setter in direct API usage #326 (tlambert03)
Tests & CI:
- Pre commit ci update config #338 (tlambert03)
- Fixing a few test things #325 (tlambert03)
Documentation:
- adds waveform generator exemple #322 (glyg)
- add example of adding mpl FigureCanvas to widget #321 (tlambert03)
v0.3.3 (2021-11-08)
Implemented enhancements:
- Add update, asdict, and update_widget to FunctionGui #309 (tlambert03)
- Add support for python 3.10 #294 (tlambert03)
Fixed bugs:
- Fix deprecation events for psygnal 0.2 #311 (tlambert03)
v0.3.2 (2021-10-22)
Fixed bugs:
- Fix unbound variable in format_number #303 (tlambert03)
v0.3.1 (2021-10-21)
Implemented enhancements:
- Add stacklevel to provide better information about place of problem #302 (Czaki)
- Table widget updates #301 (hanjinliu)
v0.3.0 (2021-10-10)
Implemented enhancements:
- Return type from
register_type
, so that it can be used as a decorator #297 (tlambert03)
Deprecated:
- Remove
choices
deprecation warning from 0.2.0 #298 (tlambert03)
Documentation:
- add v0.3.0 migration guide #299 (tlambert03)
v0.3.0rc2 (2021-10-10)
Fixed bugs:
- Allow
Signal.sender()
to work regardless of importing from magicgui or Psygnal #296 (tlambert03) - Catch kwargs in event emitter (backwards compatibility with old event emitter) #295 (tlambert03)
v0.3.0rc1 (2021-10-04)
Implemented enhancements:
- Use psygnal instead of
EventEmitter
(callbacks receive value directly). Add deprecation strategy #253 (tlambert03)
Fixed bugs:
- Replace underscore with spaces in checkbox label #293 (tlambert03)
Tests & CI:
- misc typing fixes and changlelog generator config #292 (tlambert03)
Merged pull requests:
- [pre-commit.ci] pre-commit autoupdate #291 (pre-commit-ci[bot])
- [pre-commit.ci] pre-commit autoupdate #289 (pre-commit-ci[bot])
- [pre-commit.ci] pre-commit autoupdate #287 (pre-commit-ci[bot])
v0.2.11 (2021-09-11)
Implemented enhancements:
- Add close method #283 (tlambert03)
- Make
show_file_dialog
function public #274 (tlambert03) - Add
button.clicked
alias forbutton.changed
#271 (tlambert03) - Add multi-Selection widget #265 (tlambert03)
- Add copy, paste, cut, delete keyboard shortcuts to Table widget #264 ([tlambert...
v0.4.0rc1
Changelog
v0.4.0rc1 (2022-03-18)
Implemented enhancements:
Fixed bugs:
- Use empty string as null value for FileEdit #384 (brisvag)
- fix register_widget with widget subclass #376 (tlambert03)
Deprecated:
- Remove event deprecations strategy (for release 0.4.0) #368 (tlambert03)
Tests & CI:
- Check out napari repo instead of git+https #378 (jni)
- Test that bound values don't get called greedily upon widget creation #371 (tlambert03)
v0.3.7 (2022-02-12)
Merged pull requests:
- bump psygnal dep to 0.3.0 #369 (tlambert03)
v0.3.6 (2022-02-11)
Fixed bugs:
- Fix
_normalize_slot
private attr access, and fix annotation setter forward ref resolution #367 (tlambert03)
v0.3.5 (2022-02-07)
Implemented enhancements:
Fixed bugs:
- Add new type normalization TypeWrapper, fix builtin and optional ForwardRefs #362 (tlambert03)
- Fix changing choices on ComboBox #352 (tlambert03)
Tests & CI:
- fix tests in xvfb-action #366 (tlambert03)
Documentation:
- update napari examples #357 (tlambert03)
Merged pull requests:
- Do not package tests #365 (jaimergp)
- Make Table a ValueWidget #360 (tlambert03)
- Update build workflow #344 (tlambert03)
v0.3.4 (2022-01-01)
Implemented enhancements:
- support Qt6 #324 (tlambert03)
- Support partials and tz.curry #316 (tlambert03)
Fixed bugs:
- Fix buttons on PySide2 #343 (tlambert03)
- fix py3.10 test #339 (tlambert03)
- Skip bad parameter names in inject tooltip #336 (tlambert03)
- Relay signals from Container to Container #331 (hanjinliu)
- Fix readout visibility on slider
__init__
#329 (tlambert03) - Fix bug in Select widget value setter in direct API usage #326 (tlambert03)
Tests & CI:
- Pre commit ci update config #338 (tlambert03)
- Fixing a few test things #325 (tlambert03)
Documentation:
- adds waveform generator exemple #322 (glyg)
- add example of adding mpl FigureCanvas to widget #321 (tlambert03)
v0.3.3 (2021-11-08)
Implemented enhancements:
- Add update, asdict, and update_widget to FunctionGui #309 (tlambert03)
- Add support for python 3.10 #294 (tlambert03)
Fixed bugs:
- Fix deprecation events for psygnal 0.2 #311 (tlambert03)
v0.3.2 (2021-10-22)
Fixed bugs:
- Fix unbound variable in format_number #303 (tlambert03)
v0.3.1 (2021-10-21)
Implemented enhancements:
- Add stacklevel to provide better information about place of problem #302 (Czaki)
- Table widget updates #301 (hanjinliu)
v0.3.0 (2021-10-10)
Implemented enhancements:
- Return type from
register_type
, so that it can be used as a decorator #297 (tlambert03)
Deprecated:
- Remove
choices
deprecation warning from 0.2.0 #298 (tlambert03)
Documentation:
- add v0.3.0 migration guide #299 (tlambert03)
v0.3.0rc2 (2021-10-10)
Fixed bugs:
- Allow
Signal.sender()
to work regardless of importing from magicgui or Psygnal #296 (tlambert03) - Catch kwargs in event emitter (backwards compatibility with old event emitter) #295 (tlambert03)
v0.3.0rc1 (2021-10-04)
Implemented enhancements:
- Use psygnal instead of
EventEmitter
(callbacks receive value directly). Add deprecation strategy #253 (tlambert03)
Fixed bugs:
- Replace underscore with spaces in checkbox label #293 (tlambert03)
Tests & CI:
- misc typing fixes and changlelog generator config #292 (tlambert03)
Merged pull requests:
- [pre-commit.ci] pre-commit autoupdate #291 (pre-commit-ci[bot])
- [pre-commit.ci] pre-commit autoupdate #289 (pre-commit-ci[bot])
- [pre-commit.ci] pre-commit autoupdate #287 (pre-commit-ci[bot])
v0.2.11 (2021-09-11)
Implemented enhancements:
- Add close method #283 (tlambert03)
- Make
show_file_dialog
function public #274 (tlambert03) - Add
button.clicked
alias forbutton.changed
#271 (tlambert03) - Add multi-Selection widget #265 (tlambert03)
- Add copy, paste, cut, delete keyboard shortcuts to Table widget #264 (tlambert03)
Fixed bugs:
- Fix call button text and and param options when using decorator on class method #276 (tlambert03)
- Fix check for Optional Type [#270](https://github.com/napari/magicgui/...
v0.3.7
Changelog
v0.3.7 (2022-02-12)
Merged pull requests:
- bump psygnal dep to 0.3.0 #369 (tlambert03)
v0.3.6 (2022-02-11)
Fixed bugs:
- Fix
_normalize_slot
private attr access, and fix annotation setter forward ref resolution #367 (tlambert03)
v0.3.5 (2022-02-07)
Implemented enhancements:
Fixed bugs:
- Add new type normalization TypeWrapper, fix builtin and optional ForwardRefs #362 (tlambert03)
- Fix changing choices on ComboBox #352 (tlambert03)
Tests & CI:
- fix tests in xvfb-action #366 (tlambert03)
Documentation:
- update napari examples #357 (tlambert03)
Merged pull requests:
- Do not package tests #365 (jaimergp)
- Make Table a ValueWidget #360 (tlambert03)
- Update build workflow #344 (tlambert03)
v0.3.4 (2022-01-01)
Implemented enhancements:
- support Qt6 #324 (tlambert03)
- Support partials and tz.curry #316 (tlambert03)
Fixed bugs:
- Fix buttons on PySide2 #343 (tlambert03)
- fix py3.10 test #339 (tlambert03)
- Skip bad parameter names in inject tooltip #336 (tlambert03)
- Relay signals from Container to Container #331 (hanjinliu)
- Fix readout visibility on slider
__init__
#329 (tlambert03) - Fix bug in Select widget value setter in direct API usage #326 (tlambert03)
Tests & CI:
- Pre commit ci update config #338 (tlambert03)
- Fixing a few test things #325 (tlambert03)
Documentation:
- adds waveform generator exemple #322 (glyg)
- add example of adding mpl FigureCanvas to widget #321 (tlambert03)
v0.3.3 (2021-11-08)
Implemented enhancements:
- Add update, asdict, and update_widget to FunctionGui #309 (tlambert03)
- Add support for python 3.10 #294 (tlambert03)
Fixed bugs:
- Fix deprecation events for psygnal 0.2 #311 (tlambert03)
v0.3.2 (2021-10-22)
Fixed bugs:
- Fix unbound variable in format_number #303 (tlambert03)
v0.3.1 (2021-10-21)
Implemented enhancements:
- Add stacklevel to provide better information about place of problem #302 (Czaki)
- Table widget updates #301 (hanjinliu)
v0.3.0 (2021-10-10)
Implemented enhancements:
- Return type from
register_type
, so that it can be used as a decorator #297 (tlambert03)
Deprecated:
- Remove
choices
deprecation warning from 0.2.0 #298 (tlambert03)
Documentation:
- add v0.3.0 migration guide #299 (tlambert03)
v0.3.0rc2 (2021-10-10)
Fixed bugs:
- Allow
Signal.sender()
to work regardless of importing from magicgui or Psygnal #296 (tlambert03) - Catch kwargs in event emitter (backwards compatibility with old event emitter) #295 (tlambert03)
v0.3.0rc1 (2021-10-04)
Implemented enhancements:
- Use psygnal instead of
EventEmitter
(callbacks receive value directly). Add deprecation strategy #253 (tlambert03)
Fixed bugs:
- Replace underscore with spaces in checkbox label #293 (tlambert03)
Tests & CI:
- misc typing fixes and changlelog generator config #292 (tlambert03)
Merged pull requests:
- [pre-commit.ci] pre-commit autoupdate #291 (pre-commit-ci[bot])
- [pre-commit.ci] pre-commit autoupdate #289 (pre-commit-ci[bot])
- [pre-commit.ci] pre-commit autoupdate #287 (pre-commit-ci[bot])
v0.2.11 (2021-09-11)
Implemented enhancements:
- Add close method #283 (tlambert03)
- Make
show_file_dialog
function public #274 (tlambert03) - Add
button.clicked
alias forbutton.changed
#271 (tlambert03) - Add multi-Selection widget #265 (tlambert03)
- Add copy, paste, cut, delete keyboard shortcuts to Table widget #264 (tlambert03)
Fixed bugs:
- Fix call button text and and param options when using decorator on class method #276 (tlambert03)
- Fix check for Optional Type #270 (tlambert03)
- Change comparison to null_value in ValueWidget from
==
tois
#267 (tlambert03) - Fix missing event emission when nullable widget is set to null value. #263 (tlambert03)
- Fix optional annotation affecting later widgets #262 (tlambert03)
- Fix RangeWidget with implicit optional type #257 (tlambert03)
Tests & CI:
- Fix typesafety tests #282 (tlambert03)
Documentation:
- Fix docs build again #286 (tlambert03)
- Fix docs build, add Select widget #285 (tlambert03)...
v0.3.6
Changelog
v0.3.6 (2022-02-11)
Fixed bugs:
- Fix
_normalize_slot
private attr access, and fix annotation setter forward ref resolution #367 (tlambert03)
v0.3.5 (2022-02-07)
Implemented enhancements:
Fixed bugs:
- Add new type normalization TypeWrapper, fix builtin and optional ForwardRefs #362 (tlambert03)
- Fix changing choices on ComboBox #352 (tlambert03)
Tests & CI:
- fix tests in xvfb-action #366 (tlambert03)
Documentation:
- update napari examples #357 (tlambert03)
Merged pull requests:
- Do not package tests #365 (jaimergp)
- Make Table a ValueWidget #360 (tlambert03)
- Update build workflow #344 (tlambert03)
v0.3.4 (2022-01-01)
Implemented enhancements:
- support Qt6 #324 (tlambert03)
- Support partials and tz.curry #316 (tlambert03)
Fixed bugs:
- Fix buttons on PySide2 #343 (tlambert03)
- fix py3.10 test #339 (tlambert03)
- Skip bad parameter names in inject tooltip #336 (tlambert03)
- Relay signals from Container to Container #331 (hanjinliu)
- Fix readout visibility on slider
__init__
#329 (tlambert03) - Fix bug in Select widget value setter in direct API usage #326 (tlambert03)
Tests & CI:
- Pre commit ci update config #338 (tlambert03)
- Fixing a few test things #325 (tlambert03)
Documentation:
- adds waveform generator exemple #322 (glyg)
- add example of adding mpl FigureCanvas to widget #321 (tlambert03)
v0.3.3 (2021-11-08)
Implemented enhancements:
- Add update, asdict, and update_widget to FunctionGui #309 (tlambert03)
- Add support for python 3.10 #294 (tlambert03)
Fixed bugs:
- Fix deprecation events for psygnal 0.2 #311 (tlambert03)
v0.3.2 (2021-10-22)
Fixed bugs:
- Fix unbound variable in format_number #303 (tlambert03)
v0.3.1 (2021-10-21)
Implemented enhancements:
- Add stacklevel to provide better information about place of problem #302 (Czaki)
- Table widget updates #301 (hanjinliu)
v0.3.0 (2021-10-10)
Implemented enhancements:
- Return type from
register_type
, so that it can be used as a decorator #297 (tlambert03)
Deprecated:
- Remove
choices
deprecation warning from 0.2.0 #298 (tlambert03)
Documentation:
- add v0.3.0 migration guide #299 (tlambert03)
v0.3.0rc2 (2021-10-10)
Fixed bugs:
- Allow
Signal.sender()
to work regardless of importing from magicgui or Psygnal #296 (tlambert03) - Catch kwargs in event emitter (backwards compatibility with old event emitter) #295 (tlambert03)
v0.3.0rc1 (2021-10-04)
Implemented enhancements:
- Use psygnal instead of
EventEmitter
(callbacks receive value directly). Add deprecation strategy #253 (tlambert03)
Fixed bugs:
- Replace underscore with spaces in checkbox label #293 (tlambert03)
Tests & CI:
- misc typing fixes and changlelog generator config #292 (tlambert03)
Merged pull requests:
- [pre-commit.ci] pre-commit autoupdate #291 (pre-commit-ci[bot])
- [pre-commit.ci] pre-commit autoupdate #289 (pre-commit-ci[bot])
- [pre-commit.ci] pre-commit autoupdate #287 (pre-commit-ci[bot])
v0.2.11 (2021-09-11)
Implemented enhancements:
- Add close method #283 (tlambert03)
- Make
show_file_dialog
function public #274 (tlambert03) - Add
button.clicked
alias forbutton.changed
#271 (tlambert03) - Add multi-Selection widget #265 (tlambert03)
- Add copy, paste, cut, delete keyboard shortcuts to Table widget #264 (tlambert03)
Fixed bugs:
- Fix call button text and and param options when using decorator on class method #276 (tlambert03)
- Fix check for Optional Type #270 (tlambert03)
- Change comparison to null_value in ValueWidget from
==
tois
#267 (tlambert03) - Fix missing event emission when nullable widget is set to null value. #263 (tlambert03)
- Fix optional annotation affecting later widgets #262 (tlambert03)
- Fix RangeWidget with implicit optional type #257 (tlambert03)
Tests & CI:
- Fix typesafety tests #282 (tlambert03)
Documentation:
- Fix docs build again #286 (tlambert03)
- Fix docs build, add Select widget #285 (tlambert03)
Merged pull requests:
- update master to main #280 (tlambert03)
- [pre-commit.ci] pre-commit autoupdate #278 (pre-commit-ci[bot]...
v0.3.5
Changelog
v0.3.5 (2022-02-07)
Implemented enhancements:
Fixed bugs:
- Add new type normalization TypeWrapper, fix builtin and optional ForwardRefs #362 (tlambert03)
- Fix changing choices on ComboBox #352 (tlambert03)
Tests & CI:
- fix tests in xvfb-action #366 (tlambert03)
Documentation:
- update napari examples #357 (tlambert03)
Merged pull requests:
- Do not package tests #365 (jaimergp)
- Make Table a ValueWidget #360 (tlambert03)
- Update build workflow #344 (tlambert03)
v0.3.4 (2022-01-01)
Implemented enhancements:
- support Qt6 #324 (tlambert03)
- Support partials and tz.curry #316 (tlambert03)
Fixed bugs:
- Fix buttons on PySide2 #343 (tlambert03)
- fix py3.10 test #339 (tlambert03)
- Skip bad parameter names in inject tooltip #336 (tlambert03)
- Relay signals from Container to Container #331 (hanjinliu)
- Fix readout visibility on slider
__init__
#329 (tlambert03) - Fix bug in Select widget value setter in direct API usage #326 (tlambert03)
Tests & CI:
- Pre commit ci update config #338 (tlambert03)
- Fixing a few test things #325 (tlambert03)
Documentation:
- adds waveform generator exemple #322 (glyg)
- add example of adding mpl FigureCanvas to widget #321 (tlambert03)
v0.3.3 (2021-11-08)
Implemented enhancements:
- Add update, asdict, and update_widget to FunctionGui #309 (tlambert03)
- Add support for python 3.10 #294 (tlambert03)
Fixed bugs:
- Fix deprecation events for psygnal 0.2 #311 (tlambert03)
v0.3.2 (2021-10-22)
Fixed bugs:
- Fix unbound variable in format_number #303 (tlambert03)
v0.3.1 (2021-10-21)
Implemented enhancements:
- Add stacklevel to provide better information about place of problem #302 (Czaki)
- Table widget updates #301 (hanjinliu)
v0.3.0 (2021-10-10)
Implemented enhancements:
- Return type from
register_type
, so that it can be used as a decorator #297 (tlambert03)
Deprecated:
- Remove
choices
deprecation warning from 0.2.0 #298 (tlambert03)
Documentation:
- add v0.3.0 migration guide #299 (tlambert03)
v0.3.0rc2 (2021-10-10)
Fixed bugs:
- Allow
Signal.sender()
to work regardless of importing from magicgui or Psygnal #296 (tlambert03) - Catch kwargs in event emitter (backwards compatibility with old event emitter) #295 (tlambert03)
v0.3.0rc1 (2021-10-04)
Implemented enhancements:
- Use psygnal instead of
EventEmitter
(callbacks receive value directly). Add deprecation strategy #253 (tlambert03)
Fixed bugs:
- Replace underscore with spaces in checkbox label #293 (tlambert03)
Tests & CI:
- misc typing fixes and changlelog generator config #292 (tlambert03)
Merged pull requests:
- [pre-commit.ci] pre-commit autoupdate #291 (pre-commit-ci[bot])
- [pre-commit.ci] pre-commit autoupdate #289 (pre-commit-ci[bot])
- [pre-commit.ci] pre-commit autoupdate #287 (pre-commit-ci[bot])
v0.2.11 (2021-09-11)
Implemented enhancements:
- Add close method #283 (tlambert03)
- Make
show_file_dialog
function public #274 (tlambert03) - Add
button.clicked
alias forbutton.changed
#271 (tlambert03) - Add multi-Selection widget #265 (tlambert03)
- Add copy, paste, cut, delete keyboard shortcuts to Table widget #264 (tlambert03)
Fixed bugs:
- Fix call button text and and param options when using decorator on class method #276 (tlambert03)
- Fix check for Optional Type #270 (tlambert03)
- Change comparison to null_value in ValueWidget from
==
tois
#267 (tlambert03) - Fix missing event emission when nullable widget is set to null value. #263 (tlambert03)
- Fix optional annotation affecting later widgets #262 (tlambert03)
- Fix RangeWidget with implicit optional type #257 (tlambert03)
Tests & CI:
- Fix typesafety tests #282 (tlambert03)
Documentation:
- Fix docs build again #286 (tlambert03)
- Fix docs build, add Select widget #285 (tlambert03)
Merged pull requests:
- update master to main #280 (tlambert03)
- [pre-commit.ci] pre-commit autoupdate #278 (pre-commit-ci[bot])
- [pre-commit.ci] pre-commit autoupdate #272 (pre-commit-ci[bot])
- [pre-commit.ci] pre-commit autoupdate #268 (pre-commit-ci[bot])
- [pre-commit.ci] pre-commit autoupdate [#25...
v0.3.0 (Change in event system)
Version 0.3.0 of magicgui introduced some changes to the events and callbacks API.
See https://github.com/napari/magicgui/pull/253 for details.
Existing code should continue to work with v0.3.0, but you will see warnings during runtime. See the v0.3.0 migration guide for help in migrating and silencing the warnings. In v0.4.0, these warnings will become errors.
old method
@widget.changed.connect
def my_callback(event):
# event was an `Event` object with a `value` attribute
new_value = event.value
Existing code using callbacks with a single positional argument will continue to receive a single Event object (and a
warning will be shown, until v0.4.0 where it will become an error).
new method
To silence the warning and opt in to the new pattern of receiving value directly, you can do one of two things:
- type hint your single positional argument as anything other than
magicgui.events.Event
- provide a callback that takes no arguments
@widget.changed.connect
def my_callback(new_value: int):
... # use new_value directly
# or, if you don't need to use new_value
@widget.changed.connect
def my_callback():
# something that didn't need the value
...
v0.3.0rc1
prerelease with new event API
v0.2.11
minor bug fix and feature release
added
- adds a
Select
widget (similar to ComboBox, but allows multi-selection). - makes the
show_file_dialog
helper function public - added copy/paste/cut keyboard shortcuts to table widget.
fixed - passing of parameters when decorating a class method
- fixes some issues with
Optional
types and nullable widgets.