Skip to main content

KivyGradient

KivyGradient allows you to add a gradient color to your Kivy Widget

Example Code

from kivy.app import App
from kivy.lang import Builder


kv = """
#:import get_color_from_hex kivy.utils.get_color_from_hex
#:import Gradient kivy_gradient.Gradient
RelativeLayout:
    BoxLayout
        id: box
        on_kv_post: print(get_color_from_hex("E91E63"))
        canvas:
            Rectangle:
                size: self.size
                pos: self.pos
                texture: Gradient.horizontal(get_color_from_hex("E91E63"), get_color_from_hex("FCE4EC"))
"""


class Test(App):
    def build(self):
        return Builder.load_string(kv)

    def on_stop(self):
        self.root.ids.box.export_to_png("gradient.png")


Test().run()

gradient

Metadata

Release files for kivygradient 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kivygradient 0.0.3
File Size Uploaded Provenance Actions
KivyGradient-0.0.3.tar.gz 1.9 kB Without provenance Details for KivyGradient-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kivygradient 0.0.3
File Interpreter ABI Platform Actions
KivyGradient-0.0.3-py3-none-any.whl Python 3 none any Details for KivyGradient-0.0.3-py3-none-any.whl

Total release size: 3.9 kB

Release files / KivyGradient-0.0.3.tar.gz

Download URL KivyGradient-0.0.3.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8fb6900ae3910bd6372654ab8d39b71c1e22cd5f2c4f04eedf872ba68a66869e
BLAKE2b-256 checksum
How to use checksums
322f63683842f396ed4ed1ff6b2ea02a5fe5c39b73ecf997595ffa4bc0f37405
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.5

Release files / KivyGradient-0.0.3-py3-none-any.whl

Download URL KivyGradient-0.0.3-py3-none-any.whl
Size 2.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3b16b7d1a0bad058c903a56f36753e07c792604961ef841feccc0076e9b84af
BLAKE2b-256 checksum
How to use checksums
c200b860138e3038a139411dff3891f29d5b9a49853b4c8c4151ef45e4914b11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.5

Security for kivygradient 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page