Skip to main content

A modern color picker for customtkinter

Project description

CTkColorPicker

A modern color picker made for customtkinter!

Screenshot

Download

pip install CTkColorPicker

GitHub repo size

Requirements

How to use?

import customtkinter as ctk
from CTkColorPicker import AskColor

def ask_color():
    pick_color = AskColor() # Open the Color Picker
    color = pick_color.get() # Get the color
    button.configure(fg_color=color)
    
root = ctk.CTk()

button = ctk.CTkButton(master=root, text="CHOOSE COLOR", text_color="black", command=ask_color)
button.pack(padx=30, pady=20)
root.mainloop()

Thats all, hope it will help!

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

CTkColorPicker-0.3.0.tar.gz (120.0 kB view hashes)

Uploaded Source

Built Distribution

CTkColorPicker-0.3.0-py3-none-any.whl (119.8 kB view hashes)

Uploaded Python 3

Supported by

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