KivyGradient
KivyGradient allows you to add a gradient color to your Kivy Widget
Install
pip install kivygradient
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()
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
canvas:
Rectangle:
size: self.size
pos: self.pos
texture:
Gradient.horizontal(
get_color_from_hex("E91E63"),
get_color_from_hex("FCE4EC"),
get_color_from_hex("2962FF")
)
"""
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()
Metadata
Release files for kivygradient 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kivygradient-0.0.5.tar.gz | 2.6 kB | Without provenance | Details for kivygradient-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| KivyGradient-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for KivyGradient-0.0.5-py3-none-any.whl |
Total release size: 5.4 kB
Release files / kivygradient-0.0.5.tar.gz
| Download URL | kivygradient-0.0.5.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe41e5e701540aebd90b3c3dcbe8cf0d5bc28bb6dd9a9551afd38a09ef2181f8
|
|
BLAKE2b-256 checksum How to use checksums |
1a21778ab6c80cea719963304981ce2a7a7da0d85f95f87f1714220d41a33094
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / KivyGradient-0.0.5-py3-none-any.whl
| Download URL | KivyGradient-0.0.5-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d564a6d9ac7ca50c0f4288dfec47e176341eeb372dd901304fbf158b64d781c
|
|
BLAKE2b-256 checksum How to use checksums |
3381ddd630301ab7fd98da114698971422051c57193b64118b14ddfcde5586ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Security for kivygradient 0.0.5
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.