Devicon (font-based) provider for ttkbootstrap-icons
Project description
Devicon (ttkbootstrap-icons-devicon)
Devicon provider for ttkbootstrap-icons.
Install
pip install ttkbootstrap-icons-devicon
Requires ttkbootstrap-icons (installed automatically) and Pillow.
Info
- Name: Devicon
- Source: https://devicon.dev (GitHub: https://github.com/devicons/devicon)
- Variants (font): original, original-wordmark; aliases: plain, plain-wordmark
- Example names:
python-plain,python-plain-wordmark,react-original
- Example names:
License and Attribution
- License: MIT (Devicon)
- Attribution: Devicon — https://devicon.dev
Usage
import tkinter as tk
from ttkbootstrap_icons_devicon import DevIcon
root = tk.Tk()
py = DevIcon("python", size=24, color="#3776AB", style="plain")
re = DevIcon("react", size=24, color="#61dafb", style="original")
tk.Button(root, image=py.image, text="Python", compound="left").pack()
tk.Button(root, image=re.image, text="React", compound="left").pack()
root.mainloop()
This package registers a provider entry point, so the base icon previewer will automatically discover it.
Generate assets (developer)
Use the bundled tool to fetch the TTF and produce glyphmap.json with readable names from upstream CSS/metadata:
# Use preset (pulls TTF, devicon.min.css/devicon-base.css, and devicon.json)
ttkicons-devicon-build --preset devicon
# Or specify sources directly
ttkicons-devicon-build \
--font-url https://raw.githubusercontent.com/devicons/devicon/master/fonts/devicon.ttf \
--css-url https://raw.githubusercontent.com/devicons/devicon/master/devicon.min.css \
--meta-url https://raw.githubusercontent.com/devicons/devicon/master/devicon.json
If CSS/metadata are unavailable, the tool falls back to deriving a glyph map from the TTF (requires fonttools).
Aliases, styles, and convenience names
- Upstream aliases (e.g.,
original→plain) are expanded based on devicon.json. - Styles are naming-level variants on a single font:
plain,plain-wordmark,original,original-wordmark. - You can supply either full names (e.g.,
python-plain) or a base name with astyleparameter. - A convenience alias
name→name-plainis added when applicable.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ttkbootstrap_icons_devicon-0.1.0.tar.gz.
File metadata
- Download URL: ttkbootstrap_icons_devicon-0.1.0.tar.gz
- Upload date:
- Size: 816.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d195cd9315ae62f4b1caa5a70b8f4567aecf1a795fcafcca2373f9fdcc306314
|
|
| MD5 |
38a7f2a51a8df27880ca6e45eb0ea2dd
|
|
| BLAKE2b-256 |
b01733c88c8244b5621e31cb3e22eb41c1baba1fa9dc99e682082de64c94c69c
|
File details
Details for the file ttkbootstrap_icons_devicon-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ttkbootstrap_icons_devicon-0.1.0-py3-none-any.whl
- Upload date:
- Size: 817.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57d87097d198e4b74bc1efc92565946be33ff4db27b420ebccbd5d9fee30fedc
|
|
| MD5 |
01cc3eb607cc008033c3d35fbddee600
|
|
| BLAKE2b-256 |
35e0dd3d7e6034cc44860420de935fd91fb2406fcdca20b2c33c458ab0821fad
|