Automatically animates changes in widget positions
Project description
PosAni
Automatically animates changes in widget positions.
Installation
Pin the minor version.
poetry add kivy-garden-posani@~0.3
pip install "kivy-garden-posani>=0.3,<0.4"
Usage
from kivy_garden import posani
posani.activate(widget)
Install if you prefer not to manually activate each individual widget. All the widgets created after the installation will be automatically "activated".
posani.install()
To install on a specific type of widgets:
posani.install(target="WidgetClassName")
Q&A
Why is it implemented through a widget’s canvas rather than just updating the widget's position?
Some widgets, such as BoxLayout and GridLayout, constrain the positions of their children, so directly updating a widget's position isn't always possible.
Why doesn't it animate widget sizes?
It used to until version 0.1.x but this feature was dropped in version 0.2.0.
The reason is that scaling a widget using kivy.graphics.Scale produces visually unappealing results.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kivy_garden_posani-0.3.0.tar.gz.
File metadata
- Download URL: kivy_garden_posani-0.3.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.11.4 Linux/5.4.0-216-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a802b26e5a87329256defc5abe6c1237d9a1b129685c0bdaf68f6e0792d40565
|
|
| MD5 |
b6ed8df88bb171475e320efb4ec0c051
|
|
| BLAKE2b-256 |
30c1b4d47d886d9521539c8fb3cbb48767ae985db748870fa86889d204088d69
|
File details
Details for the file kivy_garden_posani-0.3.0-py3-none-any.whl.
File metadata
- Download URL: kivy_garden_posani-0.3.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.11.4 Linux/5.4.0-216-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1ce44230fe2f3ba526c0622967735265b8230ad9eb72000a13bf31f2f941b44
|
|
| MD5 |
a5f2edc5a07a3d2fc77b08f722a64fbb
|
|
| BLAKE2b-256 |
a71ffeb9f2c8a40cc546073b5e573197103521643882cbdec9248709101a83d5
|