A modern color picker for customtkinter
Project description
CTkColorPicker
A modern color picker made for customtkinter!
Download
pip install CTkColorPicker
Requirements
How to use?
import customtkinter as ctk
from CTkColorPicker import AskColor
def ask_color():
pick_color = AskColor(width=300) # Open the Color Picker, size of the window can be changed by adjusting width parameter
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.4.0.tar.gz
(120.2 kB
view hashes)
Built Distribution
CTkColorPicker-0.4.0-py3-none-any.whl
(119.9 kB
view hashes)
Close
Hashes for CTkColorPicker-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7144544e4919ccbcdf12ff2b6377b6a402127e348615a8ea906ff2b39740f127 |
|
MD5 | 00a0e83a1ae9827485e5327a1bff1609 |
|
BLAKE2b-256 | 87a3e12fab6b14ced65a70fee4c30fc8e6851437a5967901d290cb8066403fa8 |