Skip to main content

Automatically animates changes in widget positions

Project description

PosAni

logo.png

Automatically animates changes in widget positions.

Youtube

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 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

kivy_garden_posani-0.3.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kivy_garden_posani-0.3.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file kivy_garden_posani-0.3.1.tar.gz.

File metadata

  • Download URL: kivy_garden_posani-0.3.1.tar.gz
  • Upload date:
  • Size: 2.4 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

Hashes for kivy_garden_posani-0.3.1.tar.gz
Algorithm Hash digest
SHA256 6e1a0b43129b8c62c17c21b010fbd7f9bbe39aea9eac206e70af6de4523e73fb
MD5 c43d0aa5857e975ce2dc271d28e09790
BLAKE2b-256 b72fc2fd5fdfa2a660b4f1286b0e8154808b8b1131697460a84087c5900d1013

See more details on using hashes here.

File details

Details for the file kivy_garden_posani-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: kivy_garden_posani-0.3.1-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

Hashes for kivy_garden_posani-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a669513db2ad591b705b59d4d5690a303642f0ab639e5031582ed10bdd97322a
MD5 72a2c90c93ef4cbbc01496100f3775de
BLAKE2b-256 867f44441182d8b6193ecf29647d578a6bc99108790297bdd2ae15dde57ce0a4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page