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.2.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.2.0-py3-none-any.whl (123.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ttkbootstrap_icons_ion-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 4e047c863668058ee0e021a1fdf0debac14d043dee6498032840500866955a4f
MD5 8fcbc8b4f10cfd2ec80260d01a7bcba6
BLAKE2b-256 d34b97cda4d4895fdd3cefbbc177ee75250fe1e2e3ab7c11b5bc14d6f0e23fe6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ttkbootstrap_icons_ion-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cdcf9bd147ce7bafdfb6d9eccf426772003ab56c0a39d868f2ce48aa18d7a0a0
MD5 f2b62b90e96e4ca8e4b2860272163c98
BLAKE2b-256 c970f2859a86f4f5ebdc4ce7b16be0a756a82aa3ea54624ac386fec09c8acf25

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