Skip to main content

A supercharged theme extension for tkinter that enables on-demand modern flat style themes inspired by Bootstrap.

Project description

Downloads Downloads

ttkbootstrap

English | 日本語 | 中文

ttkbootstrap is a Python library that enhances tkinter by providing modern, flat-style themes inspired by Bootstrap. Easily create stylish GUI applications with built-in themes, pre-defined widget styles, and more.

Documentation

👀 Check out the documentation.

Features

✔️ Built-in Themes
Over a dozen curated dark and light themes.

✔️ Pre-defined Styles:
Loads of beautiful pre-defined widget styles such as outline and round toggle buttons.

✔️ Simple keyword API:
Apply colors and types using simple keywords such as primary and striped instead of the legacy approach of primary.Striped.Horizontal.TProgressbar. If you've used Bootstrap for web development, you are already familiar with this approach using css classes.

✔️ Lots of new Widgets:
ttkbootstrap comes with several new beautifully designed widgets such as Meter, DateEntry, and Floodgauge. Additionally, dialogs are now themed and fully customizable.

✔️ Built-in Theme Creator:
Want to create your own theme? Easy! ttkboostrap includes a built-in theme creator that enables you to easily build, load, expore, and apply your own custom themes.

Installation

Install ttkbootstrap using pip in the terminal/command prompt!

python -m pip install ttkbootstrap

Simple Usage

Instead of using long, complicated ttk style classes, you can use simple keywords with the "bootstyle" parameter.

To get started, add the import statement at the top of your file in your preferred IDE:

import ttkbootstrap as ttk

Then create a window using the ttk.Window(...) and .mainloop() commands. And add a couple buttons (b1 and b2) to create your first window!

root = ttk.Window(themename="superhero")

b1 = ttk.Button(root, text="Submit", bootstyle="success")
b1.pack(side=LEFT, padx=5, pady=10)

b2 = ttk.Button(root, text="Submit", bootstyle="info-outline")
b2.pack(side=LEFT, padx=5, pady=10)

root.mainloop()

Here is the desired result:

Here is the result of the code used above:

For more detailed usage, please refer to the Getting Started page This page includes creating buttons, adding widgets, different styles and more.

The new keyword API is very flexible. The following examples all produce the same result:

  • bootstyle="info-outline"
  • bootstyle="info outline"
  • bootstyle=("info", "outline")
  • bootstyle=(INFO, OUTLINE)

Icons

Add icons to your app buttons and labels using the ttkbootstrap-icons library.

Contributing

We welcome contributions! If you'd like to contribute to ttkbootstrap, please check out our contributing guidelines.

Links

Support

This project is proudly developed with the support of the PyCharm IDE, generously provided by JetBrains.

JetBrains logo

© 2025 JetBrains s.r.o. JetBrains and the JetBrains logo are registered trademarks of JetBrains s.r.o.

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

ttkbootstrap-1.20.4.tar.gz (176.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ttkbootstrap-1.20.4-py3-none-any.whl (191.7 kB view details)

Uploaded Python 3

File details

Details for the file ttkbootstrap-1.20.4.tar.gz.

File metadata

  • Download URL: ttkbootstrap-1.20.4.tar.gz
  • Upload date:
  • Size: 176.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for ttkbootstrap-1.20.4.tar.gz
Algorithm Hash digest
SHA256 9dbea392231f9b977e94d753fc1acf12f3cf2324fcb996b2b4e0d0801b637161
MD5 bafcd81781ccd5253c3722838380ac7c
BLAKE2b-256 c3afa4ee7b8b4e198a94f1e68c871c239e5300857f040918fb20be47e4b0c8c7

See more details on using hashes here.

File details

Details for the file ttkbootstrap-1.20.4-py3-none-any.whl.

File metadata

  • Download URL: ttkbootstrap-1.20.4-py3-none-any.whl
  • Upload date:
  • Size: 191.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for ttkbootstrap-1.20.4-py3-none-any.whl
Algorithm Hash digest
SHA256 47629f1fcd498231f766516ba77f3e2b07ee2fbdedb3ccb6e5a79500ad573b97
MD5 ca6a7cb1634beae5b042b6a9ed2a6562
BLAKE2b-256 2137b2c3c8729be2d46ab41fde2f821fbf8ea526d9d0eaacad1e9a04a33ae67a

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