CTkColorPicker-0.5.0
توضیحات
A modern color picker for customtkinter
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | CTkColorPicker-0.5.0 |
| نام | CTkColorPicker |
| نسخه کتابخانه | 0.5.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Akash Bora |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/Akascape/CTkColorPicker |
| آدرس اینترنتی | https://pypi.org/project/CTkColorPicker/ |
| مجوز | Creative Commons Zero v1.0 Universal |
# CTkColorPicker
**A modern color picker made for customtkinter!**

## Download
```
pip install CTkColorPicker
```
### [<img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/Akascape/CTkColorPicker?&color=white&label=Source%20Code&logo=Python&logoColor=yellow&style=for-the-badge" width="300">](https://github.com/Akascape/CTkColorPicker/archive/refs/heads/main.zip)
## Requirements
- [customtkinter](https://github.com/TomSchimansky/CustomTkinter)
- [pillow](https://pypi.org/project/Pillow/)
### How to use?
```python
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!**
نیازمندی
| مقدار | نام |
|---|---|
| - | customtkinter |
| - | pillow |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl CTkColorPicker-0.5.0:
pip install CTkColorPicker-0.5.0.whl
نصب پکیج tar.gz CTkColorPicker-0.5.0:
pip install CTkColorPicker-0.5.0.tar.gz