Automatically animates changes in widget positions.
Pin the minor version.
poetry add kivy-garden-posani@~0.3
pip install "kivy-garden-posani>=0.3,<0.4"
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")
Some widgets, such as BoxLayout
and GridLayout
, constrain the positions of their children, so updating a widget's position isn't always possible.
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.