tkcolorpicker2
Color picker dialog for Tkinter. Forked from original https://github.com/j4321/tkColorPicker but with a locale fix.
This module contains a ColorPicker class which implements the color picker and an askcolor function that displays the color picker and returns the chosen color in RGB and HTML formats.
Requirements
Linux, Windows, Mac
Python 2.7 or 3.x
And the python packages:
tkinter (included in the python distribution for Windows)
Installation
With pip:
$ pip install tkcolorpicker2
Documentation
Syntax:
askcolor(color="red", parent=None, title=_("Color Chooser"), alpha=False)
Open a ColorPicker dialog and return the chosen color.
The selected color is returned as a tuple (RGB(A), #RRGGBB(AA)) (None, None) is returned if the color selection is cancelled.
Arguments:
color: initially selected color, supported formats:
RGB(A)
#RRGGBB(AA)
tkinter color name (see http://wiki.tcl.tk/37701 for a list)
parent: parent window
title: dialog title
alpha: alpha channel suppport
Example
import tkinter as tk
import tkinter.ttk as ttk
from tkcolorpicker import askcolor
root = tk.Tk()
style = ttk.Style(root)
style.theme_use('clam')
print(askcolor((255, 255, 0), root))
root.mainloop()
Metadata
Release files for tkColorPicker2 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tkcolorpicker2-1.0.tar.gz | 24.6 kB | Without provenance | Details for tkcolorpicker2-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tkColorPicker2-1.0-py3-none-any.whl | Python 3 | none | any | Details for tkColorPicker2-1.0-py3-none-any.whl |
Total release size: 55.7 kB
Release files / tkcolorpicker2-1.0.tar.gz
| Download URL | tkcolorpicker2-1.0.tar.gz |
|---|---|
| Size | 24.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a6465e7a39a3168410186c1b5cd530936ca2d853367b6a3f561a9b6a99d4b9e
|
|
BLAKE2b-256 checksum How to use checksums |
0e5bd3812c72b1bf544b17e5c535ac992829457d7d5287265f75702c958d3c39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.8.18
|
Release files / tkColorPicker2-1.0-py3-none-any.whl
| Download URL | tkColorPicker2-1.0-py3-none-any.whl |
|---|---|
| Size | 31.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0799d413a6545e867567f98b8e8f7281d0c822ff06f4aca993a3b1a44d28621e
|
|
BLAKE2b-256 checksum How to use checksums |
2ef6c14c2bb66bb03cc444233ccc6629ea262b3c12ecaeacacb500a9d3f849e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.8.18
|
Security for tkColorPicker2 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.