ttkbootstrap#
Modern, themed tkinter — style any ttk widget with one keyword.
ttkbootstrap is a theming extension for tkinter. It generates flat,
Bootstrap-inspired light and dark themes on demand and adds a single
bootstyle keyword to every ttk widget, so you describe intent
(“primary”, “success”, “outline”) instead of hand-picking colors.
Why ttkbootstrap#
One keyword does it: bootstyle="primary", bootstyle="success outline".
Describe intent, not hex codes — the same code looks right across 30 light
and dark themes and re-themes at runtime.
ttkbootstrap is an extension, not a new toolkit. It styles the ttk
widgets you already know — Button, Entry, Treeview — plus a
few batteries-included extras like Meter and DateEntry.
Flat, modern themes with sensible spacing and a coherent color system, so an app looks polished before you touch a single style option.
One runtime dependency (Pillow). Requires Python 3.10+. No native extensions, no heavy runtime.
A glimpse#
A themed window is a handful of lines — every widget takes bootstyle:
import ttkbootstrap as ttk
app = ttk.App(title="Hello", theme="bootstrap-light")
ttk.Label(app, text="Hello from ttkbootstrap!").pack(padx=16, pady=(16, 8))
ttk.Button(app, text="Primary", bootstyle="primary").pack(padx=16, pady=4)
ttk.Button(app, text="Success", bootstyle="success").pack(padx=16, pady=4)
ttk.Button(app, text="Danger Outline", bootstyle="danger outline").pack(padx=16, pady=(4, 16))
app.mainloop()
Start here#
Your first themed window in a few lines.
The bootstyle grammar, theming, and making your own styles and themes.
The visual catalog — every widget ttkbootstrap styles or ships.
The per-widget API and styling reference, capabilities, and cursors.
Install#
ttkbootstrap requires Python 3.10 or newer. Install it with pip:
pip install ttkbootstrap