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 4 of 11

0.6.12

New Features
--------------
- Add matplotlib like API in `magicclass.plot_api` (55).
- Implement `Points`3D, `Arrows3D` layers and napari-style blending in `magicclass.ext.vispy` (52, 56).
- Implement `impl_preview`, a successor of `mark_preview`, for preview/prerun of method (57).
- Implement `magicproperty` for property like widget creation (58).
- Add `magicclass.logging` submodule for logging in a widget.

Bug Fixes
-----------
- Signals were not connected to `FieldGroup` (51).
- Child `FunctionGui` widgets were invisible (54).
- `range` objects were not formatted in macro.

0.6.11

New Features
---------------
- Updates for `magicgui=0.6.0`.
- `magicclass.functools` submodule for `functools` like functions.
- `partial` ... partialize a function and its magicgui configuration
- `partialmethod` ... partialize a method and its magicgui configuration.
- `singledispatchmethod` ... call a method with a variable of different types.
- New API in `magicclass.ext.vispy` submodule.
- `camera` is now a `HasFields` subclass.
- `add_curve` method.
- Utility function `call_recent_menu`.
- `Union` type in `magicclass.types` to create a widget tabbed with different widgets.

Deprecations
---------------
- The `wraps` function is moved to `magicclass.functools` submodule.

0.6.10

Improvements
----------------
- Improved typing of `magicclass`, `magicmenu`, `magiccontext` and `magictoolbar` when they decorated a subclass of `MagicTemplate`.
- Update titlebar design of docked magicgui widget.
- Use container to store all the `thread_worker` progress bar.
- Lazy import `matplotlib` in the file of `Logger`.

Bug Fixes
----------
- Nested `Annotated` type did not work.
- `wraps` without pre-definition did not work correctly.

New Widgets
---------------
- `HistoryLineEdit` and `HistoryFileEdit`: widgets with value histories.

0.6.9

New Features
---------------
- Add plot API to `pyqtgraph` extension subpackage.
- Support PyQt6.

Changes
---------
- Magicgui with configuration `auto_call=True` will not be called on `reset_choices` if it is invisible. This change is on the consideration of closed magicgui window in a napari viewer. Invisible auto calls should be disabled to avoid unexpected function call on layer deletion.

Bug Fixes
----------
- `dask_thread_worker` did not create a new window correctly but used to update the old one.
- The "Attributes" section of class doc of magicmenu was not parsed to the child fields.

Deprecations
--------------
- All the `icon_path` arguments/properties are removed. `icon` should be used now.

0.6.8

New Features
---------------
- Install context menu to a push button using `into` argument of `magiccontext`.
- Many functions in `vispy` extension now works.
- `plot_api` in `vispy` extension.
- New popup mode "parentsub". In this mode, magicgui will be added to the parent as a subwindow.
- `dataclass_gui` decorator for using `HasFields` and `dataclass` in combination.

Bug Fixes
-----------
- Make things compatible with older Qt.

Deprecations
--------------
- `redo` is renamed to `repeat`. `redo` will be removed in the future.

0.6.7

New Features
----------------
- Add `OneOf` and `SomeOf` types for easier usage of `ComboBox` and `Select`. See [documentation](https://hanjinliu.github.io/magic-class/use_choices.html).
- A `Callback` object for `thread_worker` using `thread_worker.to_callback`. See [documentation](https://hanjinliu.github.io/magic-class/use_worker.html).
- Add supports of standard icons and converting `np.ndarray` into an icon. See [documentation](https://hanjinliu.github.io/magic-class/use_icon.html).
- New helper function `update_widget_state` to update all the widget values using macro object.
- Return annotation callback now works in magic-class and macro will be correctly recorded.

Bug Fixes
----------
- Update `__qualname__` on copying class to another.

Deprecations
--------------
- `Tuple` and `List` in `magicclass.types` are deprecated because they are now identical to `typing.List` and `typing.Tuple`.
- `icon_path` keyword argument in `set_design` is deprecated and `icon` keyword argument should be used instead because path is not the only type it accepts.

Page 4 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.