Skip to main content

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

Project description

ttkbootstrap-icons-bs

Bootstrap Icons provider for ttkbootstrap-icons.

Installation

pip install ttkbootstrap-icons-bs

Usage

from ttkbootstrap_icons_bs import BootstrapIcon

# Create an icon
icon = BootstrapIcon("house", size=24, color="black", style="outline")

# Use in a tkinter widget
import tkinter as tk
from tkinter import ttk

root = tk.Tk()
label = ttk.Label(root, text="Home", image=icon.image, compound="left")
label.pack()
root.mainloop()

Styles

Bootstrap Icons supports two styles:

  • outline (default)
  • fill

You can specify the style either as a parameter or as part of the icon name:

# Using style parameter
icon1 = BootstrapIcon("house", style="fill")

# Using style in name
icon2 = BootstrapIcon("house-fill")

License

MIT License

Bootstrap Icons are licensed under the MIT License. See https://github.com/twbs/icons/blob/main/LICENSE

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_bs-1.0.0.tar.gz (189.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_bs-1.0.0-py3-none-any.whl (190.0 kB view details)

Uploaded Python 3

File details

Details for the file ttkbootstrap_icons_bs-1.0.0.tar.gz.

File metadata

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

File hashes

Hashes for ttkbootstrap_icons_bs-1.0.0.tar.gz
Algorithm Hash digest
SHA256 41a9d038e56dd04e9e18552d3d4147d15049cb7c7a80a1df1f41e69159fdae46
MD5 8f9d9599abf21547f389d05872230730
BLAKE2b-256 3817cb05a4901653f43281ce9e0530927b40dde3d806247ee3a57ee3f3489030

See more details on using hashes here.

File details

Details for the file ttkbootstrap_icons_bs-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ttkbootstrap_icons_bs-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22fe913f94cf007cd8d26a5889e9d438569d8d0d3b0e6983017fb5ce6dc42d67
MD5 a4c8cc52986bb6be9e3a1c7b581a7f68
BLAKE2b-256 cb9a65c1178b581f952fbb269a5f9af23b82df5adf90e2a3dc804634dd0e9414

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