Name | ctk-color-picker-alpha JSON |
Version |
0.8.8
JSON |
| download |
home_page | None |
Summary | An eight-digits hex code color picker, with alpha value. |
upload_time | 2024-06-11 19:38:51 |
maintainer | None |
docs_url | None |
author | Kolyn Lin |
requires_python | <4.0,>=3.11 |
license | CC0 1.0 Universal |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# CTkColorPickerAlpha
**A special color picker that supports picking transparent color (8-digits hex code)**


## Download
```
pip install ctk-color-picker-alpha
```
## Requirements
- [customtkinter](https://github.com/TomSchimansky/CustomTkinter)
- [pillow](https://pypi.org/project/Pillow/)
- [numpy](https://numpy.org)
### How to use?
```python
import customtkinter as ctk
from ctk_color_picker_alpha import *
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, always greater than 300 pixels |
| title | change the title of color picker window |
| fg_color | change foreground 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 |
| enable_previewer | if True, display the color previewer |
| enable_alpha | if True, enable 8-digits hex code and transparency. Otherwise, use 6-digits hex code and disable transparency |
| allow_hexcode_modification | if True, enable modifications to hex code textbox |
| enable_random_button | if True, display the 'Random' button |
| _**other button parameters_ | pass other button arguments if required |
# ColorPickerWidget
**This is a new color picker widget that can be placed inside a customtkinter frame.**

### Usage
```python
from ctk_color_picker_alpha import *
import customtkinter
root = customtkinter.CTk()
colorpicker = CTkColorPicker(master=root)
colorpicker.pack(padx=10, pady=10)
root.mainloop()
```
## Options
| Arguments | Description |
|-----------------------------|---------------------------------------------------------------------------------------------------------------|
| master | parent widget |
| width | set the overall size of the color picker window, always greater than 300 pixels |
| title | change the title of color picker window |
| fg_color | change foreground 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 |
| enable_previewer | if True, display the color previewer |
| enable_alpha | if True, enable 8-digits hex code and transparency. Otherwise, use 6-digits hex code and disable transparency |
| allow_hexcode_modification | if True, enable modifications to hex code textbox |
| enable_random_button | if True, display the 'Random' button |
| _**other button parameters_ | pass other button arguments if required |
**Forked from https://github.com/Akascape/CTkColorPicker**
Raw data
{
"_id": null,
"home_page": null,
"name": "ctk-color-picker-alpha",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.11",
"maintainer_email": null,
"keywords": null,
"author": "Kolyn Lin",
"author_email": "Kanzakimakai27875628@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/80/78/48e572de26ded894f9e7ea7c15b65fc4b30a863a2159e608973c80be8621/ctk_color_picker_alpha-0.8.8.tar.gz",
"platform": null,
"description": "# CTkColorPickerAlpha\n**A special color picker that supports picking transparent color (8-digits hex code)**\n\n\n\n\n## Download\n\n```\npip install ctk-color-picker-alpha\n```\n\n## Requirements\n- [customtkinter](https://github.com/TomSchimansky/CustomTkinter)\n- [pillow](https://pypi.org/project/Pillow/)\n- [numpy](https://numpy.org)\n\n### How to use?\n\n```python\nimport customtkinter as ctk\nfrom ctk_color_picker_alpha import *\n\n\ndef ask_color():\n pick_color = AskColor() # open the color picker\n color = pick_color.get() # get the color string\n button.configure(fg_color=color)\n\n\nroot = ctk.CTk()\n\nbutton = ctk.CTkButton(master=root, text=\"CHOOSE COLOR\", text_color=\"black\", command=ask_color)\nbutton.pack(padx=30, pady=20)\nroot.mainloop()\n```\n\n## Options\n| Arguments | Description |\n|-----------------------------|---------------------------------------------------------------------------------------------------------------|\n| width | set the overall size of the color picker window, always greater than 300 pixels |\n| title | change the title of color picker window |\n| fg_color | change foreground color of the color picker frame |\n| bg_color | change background color of the color picker frame |\n| button_color | change the color of the button and slider |\n| button_hover_color | change the hover color of the buttons |\n| text | change the default text of the 'OK' button |\n| initial_color | set the default color of color picker (currently in beta stage) |\n| slider_border | change the border width of slider |\n| corner_radius | change the corner radius of all the widgets inside color picker |\n| enable_previewer | if True, display the color previewer |\n| enable_alpha | if True, enable 8-digits hex code and transparency. Otherwise, use 6-digits hex code and disable transparency |\n| allow_hexcode_modification | if True, enable modifications to hex code textbox |\n| enable_random_button | if True, display the 'Random' button |\n| _**other button parameters_ | pass other button arguments if required |\n\n# ColorPickerWidget\n**This is a new color picker widget that can be placed inside a customtkinter frame.**\n\n\n\n### Usage\n\n```python\nfrom ctk_color_picker_alpha import *\nimport customtkinter\n\nroot = customtkinter.CTk()\ncolorpicker = CTkColorPicker(master=root)\ncolorpicker.pack(padx=10, pady=10)\nroot.mainloop()\n```\n\n## Options\n| Arguments | Description |\n|-----------------------------|---------------------------------------------------------------------------------------------------------------|\n| master | parent widget |\n| width | set the overall size of the color picker window, always greater than 300 pixels |\n| title | change the title of color picker window |\n| fg_color | change foreground color of the color picker frame |\n| bg_color | change background color of the color picker frame |\n| button_color | change the color of the button and slider |\n| button_hover_color | change the hover color of the buttons |\n| text | change the default text of the 'OK' button |\n| initial_color | set the default color of color picker (currently in beta stage) |\n| slider_border | change the border width of slider |\n| corner_radius | change the corner radius of all the widgets inside color picker |\n| enable_previewer | if True, display the color previewer |\n| enable_alpha | if True, enable 8-digits hex code and transparency. Otherwise, use 6-digits hex code and disable transparency |\n| allow_hexcode_modification | if True, enable modifications to hex code textbox |\n| enable_random_button | if True, display the 'Random' button |\n| _**other button parameters_ | pass other button arguments if required |\n\n**Forked from https://github.com/Akascape/CTkColorPicker**\n",
"bugtrack_url": null,
"license": "CC0 1.0 Universal",
"summary": "An eight-digits hex code color picker, with alpha value.",
"version": "0.8.8",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a6bf3afd1cca74ff7a89c9e07c69462f7aaeef486df44f88df5b3a4ac74fbb2d",
"md5": "cee5b09aab68eb76bc395d84a3f5b1a3",
"sha256": "64e7c53d5c18be4c4421d0cd2bfdeece42b9d2e142238daaede84e6fd68ba960"
},
"downloads": -1,
"filename": "ctk_color_picker_alpha-0.8.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cee5b09aab68eb76bc395d84a3f5b1a3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.11",
"size": 131795,
"upload_time": "2024-06-11T19:38:50",
"upload_time_iso_8601": "2024-06-11T19:38:50.023752Z",
"url": "https://files.pythonhosted.org/packages/a6/bf/3afd1cca74ff7a89c9e07c69462f7aaeef486df44f88df5b3a4ac74fbb2d/ctk_color_picker_alpha-0.8.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "807848e572de26ded894f9e7ea7c15b65fc4b30a863a2159e608973c80be8621",
"md5": "a43b8deae1aaccbcca0b5d024224068f",
"sha256": "88ff725699aa26ada2a61e05e4732aa9ea72dc577f3828d9b60880fd61871abc"
},
"downloads": -1,
"filename": "ctk_color_picker_alpha-0.8.8.tar.gz",
"has_sig": false,
"md5_digest": "a43b8deae1aaccbcca0b5d024224068f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.11",
"size": 130561,
"upload_time": "2024-06-11T19:38:51",
"upload_time_iso_8601": "2024-06-11T19:38:51.533084Z",
"url": "https://files.pythonhosted.org/packages/80/78/48e572de26ded894f9e7ea7c15b65fc4b30a863a2159e608973c80be8621/ctk_color_picker_alpha-0.8.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-11 19:38:51",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "ctk-color-picker-alpha"
}