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
- Name: Ionicons v2 (font-based)
- Icon Version (preset default): 2.0.1
- Source: https://ionic.io/ionicons (CDN: https://cdnjs.com/libraries/ionicons)
License and Attribution
- Icons and code: MIT License
- Attribution: Ionicons — https://ionic.io/ionicons
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
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_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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e047c863668058ee0e021a1fdf0debac14d043dee6498032840500866955a4f
|
|
| MD5 |
8fcbc8b4f10cfd2ec80260d01a7bcba6
|
|
| BLAKE2b-256 |
d34b97cda4d4895fdd3cefbbc177ee75250fe1e2e3ab7c11b5bc14d6f0e23fe6
|
File details
Details for the file ttkbootstrap_icons_ion-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ttkbootstrap_icons_ion-0.2.0-py3-none-any.whl
- Upload date:
- Size: 123.7 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 |
cdcf9bd147ce7bafdfb6d9eccf426772003ab56c0a39d868f2ce48aa18d7a0a0
|
|
| MD5 |
f2b62b90e96e4ca8e4b2860272163c98
|
|
| BLAKE2b-256 |
c970f2859a86f4f5ebdc4ce7b16be0a756a82aa3ea54624ac386fec09c8acf25
|