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
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_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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41a9d038e56dd04e9e18552d3d4147d15049cb7c7a80a1df1f41e69159fdae46
|
|
| MD5 |
8f9d9599abf21547f389d05872230730
|
|
| BLAKE2b-256 |
3817cb05a4901653f43281ce9e0530927b40dde3d806247ee3a57ee3f3489030
|
File details
Details for the file ttkbootstrap_icons_bs-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ttkbootstrap_icons_bs-1.0.0-py3-none-any.whl
- Upload date:
- Size: 190.0 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 |
22fe913f94cf007cd8d26a5889e9d438569d8d0d3b0e6983017fb5ce6dc42d67
|
|
| MD5 |
a4c8cc52986bb6be9e3a1c7b581a7f68
|
|
| BLAKE2b-256 |
cb9a65c1178b581f952fbb269a5f9af23b82df5adf90e2a3dc804634dd0e9414
|