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() # open the color picker
color = pick_color.get() # get the color string
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()
Options
Arguments | Description |
---|---|
width | set the overall size of the color picker window |
title | change the title of color picker window |
fg_color | change forground color of the color picker frame |
bg_color | change background color of the color picker frame |
button_color | change the color of the button and slider |
button_hover_color | change the hover color of the buttons |
text | change the default text of the 'OK' button |
initial_color | set the default color of color picker (currently in beta stage) |
slider_border | change the border width of slider |
corner_radius | change the corner radius of all the widgets inside color picker |
**other button parameters | pass other button arguments if required |
That's 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.5.0.tar.gz
(120.9 kB
view hashes)
Built Distribution
CTkColorPicker-0.5.0-py3-none-any.whl
(120.7 kB
view hashes)
Close
Hashes for CTkColorPicker-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b90fc98bb414e4c87df09dd552bd749cd5699de111df12d3bbf7d4864285c68 |
|
MD5 | 097a6f4914e80243977f9a1055f1241e |
|
BLAKE2b-256 | d38f47b6656f98957e03d6ac05cc2436abcb7bd16e3e45e4ada0d9605b3434ad |