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

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

👀 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

python -m pip install ttkbootstrap

Simple Usage

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

import ttkbootstrap as ttk
from ttkbootstrap.constants import *

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()

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)

Links

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.10.1.tar.gz (125.4 kB view details)

Uploaded Source

Built Distribution

ttkbootstrap-1.10.1-py3-none-any.whl (133.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ttkbootstrap-1.10.1.tar.gz
  • Upload date:
  • Size: 125.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for ttkbootstrap-1.10.1.tar.gz
Algorithm Hash digest
SHA256 53925525c4104f9e345627500dced2d0392ad74324b2a81467aaee3ffbe1a474
MD5 12bafb4412daef43343b914f7df702ba
BLAKE2b-256 e79e22845f8e68415f4246342f3eccc5939991445098e8c1c0cf60c459755d22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ttkbootstrap-1.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6a10ee5ea64051a0f8b75c20ef8e5f2417c62b4d0858c831683d4f2135aa573
MD5 cce343d31256f2f37f8327b452d36d55
BLAKE2b-256 e6a801691c28bb6320f6872e4719140e108b101eddc986aa9d3625972e43ab1c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page