Skip to main content

Ion Icons (font-based) provider for ttkbootstrap-icons

Project description

Ionicons (ttkbootstrap-icons-ion)

Ion Icons provider for ttkbootstrap-icons.

Install

pip install ttkbootstrap-icons-ion

Requires ttkbootstrap-icons (installed automatically) and Pillow.

Info

License and Attribution

Usage

import tkinter as tk
from ttkbootstrap_icons_ion import IonIcon

root = tk.Tk()

icon = IonIcon("home", size=24, color="#198754")
tk.Button(root, image=icon.image).pack()

root.mainloop()

This package registers a provider entry point, so the base icon previewer will automatically discover it.

Generate assets (developer)

# Preset for Ionicons v2 font via cdnjs (automatically fetches CSS for readable names)
ttkicons-ion-build --preset ion2 --version 2.0.1

# Or direct URL
ttkicons-ion-build --font-url https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/fonts/ionicons.ttf

Readable names

  • The builder will try to fetch the matching CSS (ionicons.min.css) to map class names (e.g., .ion-alert) to codepoints.
  • You can explicitly pass a CSS source:
ttkicons-ion-build \
  --font-url https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/fonts/ionicons.ttf \
  --css-url  https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css

Omitting metadata uses TTF-only extraction (needs fonttools).

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_ion-0.1.0.tar.gz (124.8 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_ion-0.1.0-py3-none-any.whl (123.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ttkbootstrap_icons_ion-0.1.0.tar.gz
  • Upload date:
  • Size: 124.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for ttkbootstrap_icons_ion-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a100764ba1e6e15850d790b9128b03e4d81d244784ca475a4159a4450de44ba8
MD5 770d878ac39e23a9cec0fe86fb3cdb34
BLAKE2b-256 8e61d1e98ce6bfd19601cfdf13bb95078e22082828b72833cb3f6dde0e500377

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ttkbootstrap_icons_ion-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52121d8a658d64459b9c92478e28ae29121522155505d71fc584732454086a47
MD5 276bb5f353c15c7dfdbe3570a1065680
BLAKE2b-256 29a22202734770b4452926007a28f72532cec553fec55a86f93481fc65cf1190

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