Nurses-2

Latest version: v0.25.0

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

Scan your dependencies

Page 1 of 2

0.181

TextPanel added for multiline static text.

0.25.0

New in v0.25.0
----------------
- `nurses_2` is now formatted with [Black](https://github.com/psf/black) and [isort](https://github.com/pycqa/isort), and linted with [ruff](https://github.com/astral-sh/ruff)!
- `Sparkline` widget added.
- `BarChart` widget added.
- `ScrollView` smooth(er) scrolling with fractional block characters.
- Box drawing option for `LinePlot`.
- `ProgressBar`'s `progress` attribute can be set to `None` for an infinite loading animation.
- `TextPad` and `Textbox` correctly take into account full-width characters as cursor moves or text is added and deleted.
- `TextPad` and `Textbox` now have move-across-word keybinds.
- `ShadowCaster` types simplified.
- Widget behaviors now follow an "-able" naming convention. Several behaviors have been renamed:
- `GrabbableBehavior` is now `Grabbable`
- `GrabMoveBehavior` is now `Movable`
- `GrabResizeBehavior` is now `Resizable`
- `FocusBehavior` is now `Focusable`
- `ScatterBehavior` is now `MovableChildren`
- `TextAnimation`'s color pair can now be set with the `animation_color_pair` attribute.
- Several enum parameters are now literal types.
- `Anchor` is now `Literal["bottom", "bottom-left", "bottom-right", "center", "left", "right", "top", "top-left", "top-right"]`
- `Interpolation` is now `Literal["nearest", "linear", "cubic", "area", "lanczos"]`
- `GridLayout.Orientation` is now `Literal["lr-tb", "lr-bt", "rl-tb", "rl-bt", "tb-lr", "tb-rl", "bt-lr", "bt-rl"]`
- `Border` is now `Literal["light", "heavy", "double", "curved", "ascii", "outer", "inner", "thick"]`
- `Easing` is now a literal type.
- Data table `SelectItems` and `Alignment` removed; parameters using these types now use literal types.
- Datatype of NDArray types now added to type hints, e.g., `NDArray[np.uint8]`.
- `TabbedWidget` bug fixes:
- Previous active tab content now disabled correctly when a new tab is added.
- Animated underline height fixed.
- A few minor bug fixes.

0.20.1

- `TextAnimation` and spinners
- `TabbedWidget`
- `DataTable`
- Transparent text widgets don't paint their background color (background colors behind them are visible).

0.18.8

Create ascii art banners from FIGfont files. Banners are created as arrays that they can be copied into `TextWidget` canvas arrays.

0.18.2

Text input widgets no longer use terminal cursor. Instead they draw a "virtual cursor".

0.18.0

Before, `TextWidget` canvas arrays had dtype `object`. Now canvas arrays have dtype `("char", "U1"), ("bold", "?"), ("italic", "?"), ("underline", "?"), ("strikethrough", "?")`.

Additional changes:
* `add_text` method of `TextWidget` is now `add_str` and `add_text` is now a function that adds multiline text to arbitrary views of a canvas array.
* Color theming is completely revamped.
* CanvasView removed.
* Animated toggle buttons added.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.