Skip to main content

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

License and Attribution

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., originalplain) 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 a style parameter.
  • A convenience alias namename-plain is added when applicable.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ttkbootstrap_icons_devicon-0.1.0.tar.gz (816.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ttkbootstrap_icons_devicon-0.1.0-py3-none-any.whl (817.3 kB view details)

Uploaded Python 3

File details

Details for the file ttkbootstrap_icons_devicon-0.1.0.tar.gz.

File metadata

File hashes

Hashes for ttkbootstrap_icons_devicon-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d195cd9315ae62f4b1caa5a70b8f4567aecf1a795fcafcca2373f9fdcc306314
MD5 38a7f2a51a8df27880ca6e45eb0ea2dd
BLAKE2b-256 b01733c88c8244b5621e31cb3e22eb41c1baba1fa9dc99e682082de64c94c69c

See more details on using hashes here.

File details

Details for the file ttkbootstrap_icons_devicon-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ttkbootstrap_icons_devicon-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57d87097d198e4b74bc1efc92565946be33ff4db27b420ebccbd5d9fee30fedc
MD5 01cc3eb607cc008033c3d35fbddee600
BLAKE2b-256 35e0dd3d7e6034cc44860420de935fd91fb2406fcdca20b2c33c458ab0821fad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page