tkfeather 
tkinter support for feather icons
Latest Changes
Current version: 1.0.1
- Fixes for and improvements to the example showcase
- Minor performace improvements
Usage
Installation
tkfeather can be installed with pip
pip install tkfeather
Import
Import tkfeather like so
from tkfeather import Feather
Once you've imported the Feather class, you can instantiate it as many times as you need
Feather(name: str, size: int [optional])
Parameters
name: str- The name of the Feather iconsize: int [optional]- The size of the icon image in pixels, square (default: 24)
[!WARNING] Sizes smaller than 24px are allowed but aren't recommended as the icon will become blurred
The minimum allowed
sizeis 1, and the maximum allowedsizeis 1024
Properties
Feather.icon- anImageTk.PhotoImageobject for the given Feather icon
Class Methods
Feather.icons_available()returns a list with the names of all available Feather Icons
[!TIP] tkfeather v1.0.1 supports all of the icons available in Feather Icons v4.29.0
Exceptions
- Passing a
sizevalue outside the range of 1 to 1024 will raise aValueError - Trying to use an icon that doesn't exist will raise a
FileNotFoundError
Example
You must maintain a reference to the Feather instance in a variable in order to keep the image from being garbage-collected:
# this works
feather = Feather('home')
label = tk.Label(parent, image=feather.icon)
label.pack()
If you don't maintain a reference to the image, it won't appear!
# this doesn't work - the label will have no image
label = tk.Label(parent, image=Feather('home').icon)
label.pack()
Showcase
To see an example application showcasing all of the available icons, you can run the tkfeather.showcase like so:
python3 -m tkfeather.showcase
Packaged Dependencies
- PNG Icons
- Pillow >= 9.2.0
Acknowledgements
Based on Feather Icons originally created by Cole Bemis, used under the MIT License
Metadata
Release files for tkfeather 1.0.1
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 |
|---|---|---|---|---|
| tkfeather-1.0.1.tar.gz | 5.2 MB | Without provenance | Details for tkfeather-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tkfeather-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for tkfeather-1.0.1-py3-none-any.whl |
Total release size: 10.4 MB
Release files / tkfeather-1.0.1.tar.gz
| Download URL | tkfeather-1.0.1.tar.gz |
|---|---|
| Size | 5.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bfe4ca635f18eebcb23e0456a8a28229793cc84e8ac1231df6d012d094aaaffd
|
|
BLAKE2b-256 checksum How to use checksums |
83c839c485474753f83ad1968b2386146f9fd1c59f075ce4585d49a7ebcc9baf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.12 Darwin/24.6.0
|
Release files / tkfeather-1.0.1-py3-none-any.whl
| Download URL | tkfeather-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
053899881bcc9700bae71362ef87c2c08d1d41fa25ba890464d65aba9d0920ca
|
|
BLAKE2b-256 checksum How to use checksums |
904945b7b0b3a00173e4eb95065a906e57cec9c5c8d28726f70fdaf833e06c66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.12 Darwin/24.6.0
|
Security for tkfeather 1.0.1
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.