Skip to main content

RPG Awesome (font-based) provider for ttkbootstrap-icons

Project description

RPG Awesome (ttkbootstrap-icons-rpga)

RPG Awesome provider for ttkbootstrap-icons.

Install

pip install ttkbootstrap-icons-rpga

Requires ttkbootstrap-icons (installed automatically) and Pillow.

Info

License and Attribution

Usage

import tkinter as tk
from ttkbootstrap_icons_rpga import RPGAIcon

root = tk.Tk()

# Both base and prefixed names work: "sword" or "ra-sword"
icon = RPGAIcon("sword", size=24, color="#6f42c1")
tk.Button(root, image=icon.image, text="Sword", 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:

# Use preset (pulls TTF and CSS from cdnjs)
ttkicons-rpga-build --preset rpga --version 0.2.0

# Or specify sources directly
ttkicons-rpga-build \
  --font-url https://cdnjs.cloudflare.com/ajax/libs/rpg-awesome/0.2.0/fonts/rpgawesome-webfont.ttf \
  --css-url  https://cdnjs.cloudflare.com/ajax/libs/rpg-awesome/0.2.0/css/rpg-awesome.min.css

If CSS is unavailable, the tool falls back to deriving a glyph map from the TTF (requires fonttools).

Changelog

Version Date Notes
0.1.0 2025-10-28 Initial provider; CSS/TTF builder preset; ra- class map

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_rpga-0.1.0.tar.gz (110.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_rpga-0.1.0-py3-none-any.whl (109.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ttkbootstrap_icons_rpga-0.1.0.tar.gz
  • Upload date:
  • Size: 110.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_rpga-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c69b78a8a5a4f2544d6f80b0d3552718a4e8adace8b8f95d5c7147e096112f0c
MD5 8d1ce3fdd9f1aeeb1a391dc35d57c0e6
BLAKE2b-256 98edb0be3f239764753e1d44444e4e7f104bb82541a97a548e16b3097815f9cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ttkbootstrap_icons_rpga-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6e3eb9b3ef06318c59ec8985084ad05bab2b21aea866edc1206fc4f47f121d5
MD5 73bb0ed41ae3cc77a7d5ce39a9415dc9
BLAKE2b-256 280154e5e66f379f522198ad3dcabce1c43d8ec6f53a419dc6130dd554bf80b0

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