Magic-class

Latest version: v0.7.14

Safety actively analyzes 682471 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 11

0.7.8

What's Changed
* Implement serialize/deserialize by hanjinliu in https://github.com/hanjinliu/magic-class/pull/134
* Implement `_repr_png_` for tool buttons.
* Update logger's `print_table`.

**Full Changelog**: https://github.com/hanjinliu/magic-class/compare/v0.7.7...v0.7.8

0.7.7

- Warn if widgets are added to a magic class as a class variable (130).
- Fix using same magic classes in fields (132).
- Migrate to mkdocs (133).
- Fix tooltips of tool buttons.
- Assign "Esc" to close magicgui dialogs.

0.7.6

Changes
----------
- Support python 3.12 (123) and magicgui 0.8.0 (127).
- Implement `location=` argument for the consistent way of parent/child connection (125).
- Support iconify icons, following the latest update in magicgui (126).
- Hold children classes as a WeakSet.

Bug Fixes
-----------
- Fix `connect_async` behavior (118).
- Fix callback searching strategy (119).

Deprecations
--------------
- `dataclass_gui` is deprecated because it is not well tested and `magicgui`'s `guiclass` does the similar thing.
- Magic classes' `cls.field` / `cls.vfield` methods are deprecated in favor of `location` argument of `field` / `vfield` functions.
- Using Qt standard icons are deprecated in favor of using iconify.

0.7.5

New Features
----------------
- Add methods to temporarily convert GUI error mode (111).
- Simple scrollable, collapsible, resizable and draggable container creation by boxification (112).
- Support nested `thread_worker` (114).
- Implement `connect_async` for async callbacks of value widgets (117).
- Support "validator" key in Annotated.

Bug Fixes
----------
- Fix typing (106, 107).
- Fix callback searching strategy (116).

0.7.4

Changes
---------
- More menus in `matplotlib` figures.
- Support positional-only arguments in methods.
- More VSCode-like behavior of CodeEdit widget.
- Don't launch message box if method calls are cancelled.
- Close magicgui before function call.
- Add `OneLineRunner` widget.
- Support python 3.8 again.

Bug Fixes
-----------
- Fix copying in `polars` viewer widget.
- Fix `do_not_record` not considered in functions appended after GUI construction.
- Fix `repeat_method` behavior.
- Fix some thread unsafety.

0.7.3

Bug Fixes
----------
- Fix pyproject.toml to include "testing" and "*.pyi".
- Fix pyproject.toml to exclude unrelated files.

Page 2 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.