Create a gradient frame for your customtkinter applications.
CTkGradient
CTkGradient is a fork of GradientFrame-Tkinter, it is a python module to create customtkinter frames with a gradient background color of your choice, you can choose between a vertical or horizontal gradient, among other options.
How to use it?
Install the module using pip (or pip3) by typing the next command on console...
pip install CTkGradient
Then import it and use it, here is an example:
# Import customtkinter and CTkGradient
import customtkinter as ctk
import CTkGradient as ctkg
# Initialize CustomTkinter
ctk.set_appearance_mode("dark")
ctk.set_default_color_theme("blue")
root = ctk.CTk()
# Create a GradientFrame with custom colors and direction
gradient_frame = ctkg.GradientFrame(
master = root,
colors = ("#ec0075", "#ffd366"),
direction = "vertical",
corner_radius = 10,
height = 600,
width = 800
)
gradient_frame.pack(fill = "both", expand = True)
root.mainloop()
Metadata
Release files for CTkGradient 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ctkgradient-0.3.2.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| CTkGradient-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.6 kB
Release files / ctkgradient-0.3.2.tar.gz
| Download URL | ctkgradient-0.3.2.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
901ee57dbf60323a751a36a3e6c9853a9d730241dc1c827a3a89cf1a17270088
|
|
BLAKE2b-256 checksum How to use checksums |
bbb28ef39d7ffb7b26347ce59301ac2872b0939f82625ed747d8f408d44fc355
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / CTkGradient-0.3.2-py3-none-any.whl
| Download URL | CTkGradient-0.3.2-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84a0cf40c71364a6f9e49360079549f1471a389acc98fd3e14cf35b9b34b6ab5
|
|
BLAKE2b-256 checksum How to use checksums |
95a048036d1ff0edf1fbe71fbdf82a8dfae84379a1133c9b210b1978f98ebc53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|