Skip to content

Latest commit

History

43 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

ctkgradient logo

Create a gradient frame for your customtkinter applications.

pypiDownloadsPlatform

Screenshot

CTkGradient

CTkGradient is a fork of GradientFrame-Tkinter, ported to customtkinter and with some improvements. 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.

Note

This project is in alpha state, so you may encounter bugs through its use, which I would recommend reporting in issues. I'm thinking about a few features with gradients like buttons and other widgets, so stay tuned!

How to use it?

Install the module using pip (or pip3) by typing the next command on console...

pipinstallCTkGradient

Then import it and use it, here is an example:

# Import customtkinter and CTkGradientimportcustomtkinterasctkimportCTkGradientasctkg# Initialize CustomTkinterctk.set_appearance_mode("dark")
ctk.set_default_color_theme("blue")
root=ctk.CTk()
# Create a GradientFrame with custom colors and directiongradient_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()

About

✨ Create a gradient frame for your customtkinter applications

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages